TiberiuCristianLeon commited on
Commit
a4d39dd
·
verified ·
1 Parent(s): c6657b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def create_interface():
55
  input_text = gr.Textbox(label="Enter text to translate:", placeholder="Type your text here...")
56
 
57
  with gr.Row():
58
- sselected_language = gr.Dropdown(choices=options, value = options[0], label="Source language" interactive=True)
59
  tselected_language = gr.Dropdown(choices=options, value = options[1], label="Target language", interactive=True)
60
  swap_button = gr.Button("Swap Languages")
61
  swap_button.click(fn=swap_languages, inputs=[sselected_language, tselected_language], outputs=[sselected_language, tselected_language])
 
55
  input_text = gr.Textbox(label="Enter text to translate:", placeholder="Type your text here...")
56
 
57
  with gr.Row():
58
+ sselected_language = gr.Dropdown(choices=options, value = options[0], label="Source language", interactive=True)
59
  tselected_language = gr.Dropdown(choices=options, value = options[1], label="Target language", interactive=True)
60
  swap_button = gr.Button("Swap Languages")
61
  swap_button.click(fn=swap_languages, inputs=[sselected_language, tselected_language], outputs=[sselected_language, tselected_language])