osanseviero HF staff commited on
Commit
d8d0d6c
1 Parent(s): 0a9bca0

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Interactive demo: Helsinki-NLP English to Spanish Translation"
4
+
5
+ iface = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-en-es",
6
+ title=title,
7
+ examples=[["Hello! My name is Omar"]]
8
+ )
9
+
10
+ iface.launch()