MorenoLaQuatra commited on
Commit
90fb392
β€’
1 Parent(s): 30e260d

Initial commit

Browse files
Files changed (3) hide show
  1. README.md +5 -5
  2. app.py +8 -0
  3. requirements.txt +2 -0
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
- title: Galactica Base Api
3
- emoji: 🌍
4
- colorFrom: indigo
5
- colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 3.10.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
1
  ---
2
+ title: Galactica Base - Inference API
3
+ emoji: πŸ“
4
+ colorFrom: yellow
5
+ colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 3.9.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ iface = gr.Interface.load(
5
+ "huggingface/facebook/galactica-1.3b",
6
+ )
7
+
8
+ iface.launch()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ git+https://github.com/paperswithcode/galai
2
+ gradio