Chris4K commited on
Commit
b6c3422
β€’
1 Parent(s): c46ee0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -107,7 +107,7 @@ iface = gr.Interface(
107
  fn=hf_inference_translate,
108
  inputs=[
109
  gr.inputs.Textbox(label="Input", lines=5, placeholder="Enter text to translate"),
110
- gr.inputs.Dropdown(["en", "fr", "de", "es", "ru"], label="Select target language")
111
  ],
112
  outputs=[
113
  gr.outputs.Textbox(label="Translated text"),
@@ -115,12 +115,12 @@ iface = gr.Interface(
115
  ],
116
  title="🧐 Translation Interface",
117
  description="Type something in any language below and then click Run to see the output in the chosen target language.",
118
- examples=[["Wie geht es Dir?", "fr"], ["Do you need help?", "de"]],
119
  article="## Text Examples",
120
  article_description="Use examples",
121
  #live=True,
122
  debug=True,
123
- cache_examples=False
124
  )
125
 
126
 
 
107
  fn=hf_inference_translate,
108
  inputs=[
109
  gr.inputs.Textbox(label="Input", lines=5, placeholder="Enter text to translate"),
110
+ gr.inputs.Dropdown(["en", "fr", "de", "es", "ru"], value="de", label="Select target language")
111
  ],
112
  outputs=[
113
  gr.outputs.Textbox(label="Translated text"),
 
115
  ],
116
  title="🧐 Translation Interface",
117
  description="Type something in any language below and then click Run to see the output in the chosen target language.",
118
+ examples=[["Wie geht es Dir?", "fr"], ["Do you need help?", "de"], ["J'ai besoin d'aide ?", "en"]],
119
  article="## Text Examples",
120
  article_description="Use examples",
121
  #live=True,
122
  debug=True,
123
+ cache_examples=True
124
  )
125
 
126