File size: 234 Bytes
d8d0d6c
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr

title = "Interactive demo: Helsinki-NLP English to Spanish Translation"

iface = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es",
  title=title,
  examples=[["Hello! My name is Omar"]]
)

iface.launch()