Spaces:
Build error
Build error
Abubakar Abid
commited on
Commit
•
ecd7d84
1
Parent(s):
1becd76
Update app.py
Browse files
app.py
CHANGED
@@ -7,14 +7,14 @@ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
|
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
9 |
|
10 |
-
title = "
|
11 |
|
12 |
iface = gr.Interface(
|
13 |
fn=predict,
|
14 |
inputs=[gr.inputs.Textbox(label="text", lines=3)],
|
15 |
outputs='text',
|
16 |
title=title,
|
17 |
-
examples=[["Hello! My name is
|
18 |
)
|
19 |
|
20 |
iface.launch(debug=True)
|
|
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
9 |
|
10 |
+
title = "English to Spanish Translation (forked from osanseviero/test_gradio)"
|
11 |
|
12 |
iface = gr.Interface(
|
13 |
fn=predict,
|
14 |
inputs=[gr.inputs.Textbox(label="text", lines=3)],
|
15 |
outputs='text',
|
16 |
title=title,
|
17 |
+
examples=[["Hello! My name is Abubakar"], ["How are you?"]]
|
18 |
)
|
19 |
|
20 |
iface.launch(debug=True)
|