kveer001's picture
Update app.py
a093e1f
raw
history blame contribute delete
176 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
demo = gr.Interface.from_pipeline(pipe)
demo.launch()