jaeyoungk commited on
Commit
612ed3d
·
1 Parent(s): c3ac709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,3 +1,7 @@
 
1
  import gradio as gr
2
 
3
- gr.Interface(fn=predict, inputs="text", outputs="text").launch()
 
 
 
 
1
+ from transformers import pipeline
2
  import gradio as gr
3
 
4
+ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
5
+
6
+ demo = gr.Interface.from_pipeline(pipe)
7
+ demo.launch()