wooyoung0005 commited on
Commit
7cc339d
1 Parent(s): bbaa6bc

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
+
7
+ demo = gr.Interface.from_pipeline(pipe)
8
+ demo.launch()