ycsycs commited on
Commit
1909f4b
1 Parent(s): 964148a

Create app.py

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