Spaces:
Sleeping
Sleeping
Camille Lebrun
commited on
Commit
•
3e681ea
1
Parent(s):
4c10a9e
gllo
Browse files- .gitignore +1 -0
- app.py +5 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
hf_env
|
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
pipe = pipeline("translation", model="openchat/openchat-3.5-1210")
|
5 |
+
|
6 |
+
demo = gr.Interface.from_pipeline(pipe)
|
7 |
+
demo.launch()
|