File size: 197 Bytes
7cc339d
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr
import transformers
from transformers import pipeline

pipe = pipeline("translation", model ="Helsinki-NLP/opus-mt-ko-en")

demo = gr.Interface.from_pipeline(pipe)
demo.launch()