Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,16 @@ def translate(text,src,dst):
|
|
9 |
demo = gr.Interface(
|
10 |
translate,
|
11 |
[
|
12 |
-
gr.Textbox(label="
|
13 |
-
gr.Radio(["fr", "en","de","ru"], label="
|
14 |
-
gr.Radio(["fr", "en","de","ru"], label="
|
15 |
],
|
16 |
"text",
|
17 |
examples=[
|
18 |
["Mon nom est Thomas et je vis à Paris.","fr","en"],
|
19 |
-
["My name is Bob and I live in London.","en","
|
20 |
["Mein Name ist Wolfgang und ich lebe in Berlin.","de","fr"],
|
21 |
-
["Меня зовут
|
22 |
]
|
23 |
)
|
24 |
|
|
|
9 |
demo = gr.Interface(
|
10 |
translate,
|
11 |
[
|
12 |
+
gr.Textbox(label="Text to be translated"),
|
13 |
+
gr.Radio(["fr", "en","de","ru"], label="Source",value="fr"),
|
14 |
+
gr.Radio(["fr", "en","de","ru"], label="Target",value="en"),
|
15 |
],
|
16 |
"text",
|
17 |
examples=[
|
18 |
["Mon nom est Thomas et je vis à Paris.","fr","en"],
|
19 |
+
["My name is Bob and I live in London.","en","de"],
|
20 |
["Mein Name ist Wolfgang und ich lebe in Berlin.","de","fr"],
|
21 |
+
["Меня зовут Наташа и я живу в Москве.","ru","en"],
|
22 |
]
|
23 |
)
|
24 |
|