Spaces:
Runtime error

translate / app.py
aam1963's picture
update app-2
7ed0d45
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()