Camille Lebrun commited on
Commit
3e681ea
1 Parent(s): 4c10a9e
Files changed (2) hide show
  1. .gitignore +1 -0
  2. 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
- gr.load("models/openchat/openchat_3.5").launch()
 
 
 
 
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()