Spaces:
Runtime error
Runtime error
Commit
•
d8d0d6c
1
Parent(s):
0a9bca0
Create app.py
Browse files
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()
|