bobhorn42 commited on
Commit
c70aa7f
1 Parent(s): ddba463

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -9,16 +9,16 @@ def translate(text,src,dst):
9
  demo = gr.Interface(
10
  translate,
11
  [
12
- gr.Textbox(label="Texte a traduire"),
13
- gr.Radio(["fr", "en","de","ru"], label="Langue source",value="fr"),
14
- gr.Radio(["fr", "en","de","ru"], label="Langue cible",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","fr"],
20
  ["Mein Name ist Wolfgang und ich lebe in Berlin.","de","fr"],
21
- ["Меня зовут Сара и я живу в Лондоне.","ru","fr"],
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