picocreator commited on
Commit
f88c740
1 Parent(s): 5709a62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -304,6 +304,15 @@ EXAMPLES = [
304
  ["Tout est bien qui finit bien.", "French", "English"],
305
  ["Lasciate ogne speranza, voi ch'intrate.", "Italian", "English"],
306
  ["Errare humanum est.", "Latin", "English"],
 
 
 
 
 
 
 
 
 
307
  ]
308
  # Gradio interface
309
  with gr.Blocks(title=title) as demo:
@@ -320,7 +329,7 @@ with gr.Blocks(title=title) as demo:
320
  submit = gr.Button("Translate", variant="primary")
321
 
322
  # Example data
323
- data = gr.Dataset(components=[text, source_language, target_language], samples=EXAMPLES, label="Example Translations", headers=["Source Text", "Target Language"])
324
 
325
  # Button action
326
  submit.click(translate, [text, source_language, target_language], [output])
 
304
  ["Tout est bien qui finit bien.", "French", "English"],
305
  ["Lasciate ogne speranza, voi ch'intrate.", "Italian", "English"],
306
  ["Errare humanum est.", "Latin", "English"],
307
+
308
+ # ["Brargh-ains argh-uh foo-duh", "English"],
309
+ # ["I Want to eat your brains", "Zombie Speak"],
310
+ # ["Bonjour, comment ça va?", "English"],
311
+ # ["Hola, ¿cómo estás?", "English"],
312
+ # ["你好吗?", "English"],
313
+ # ["Guten Tag, wie geht es Ihnen?", "English"],
314
+ # ["Привет, как ты?", "English"],
315
+ # ["مرحبًا ، كيف حالك؟", "English"],
316
  ]
317
  # Gradio interface
318
  with gr.Blocks(title=title) as demo:
 
329
  submit = gr.Button("Translate", variant="primary")
330
 
331
  # Example data
332
+ data = gr.Dataset(components=[text, source_language, target_language], samples=EXAMPLES, label="Example Translations", headers=["Source Text", "Source Language", "Target Language"])
333
 
334
  # Button action
335
  submit.click(translate, [text, source_language, target_language], [output])