translater / app.py
wooyoung0005's picture
Create app.py
7cc339d
raw
history blame contribute delete
197 Bytes
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()