TiberiuCristianLeon commited on
Commit
3137920
·
verified ·
1 Parent(s): 4596a5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,8 +85,8 @@ def create_interface():
85
  input_text = gr.Textbox(label="Enter text to translate:", placeholder="Type your text here...")
86
 
87
  with gr.Row():
88
- sselected_language = gr.Dropdown(choices=options, value = options[0], label="Source language", interactive=True)
89
- tselected_language = gr.Dropdown(choices=options, value = options[1], label="Target language", interactive=True)
90
  swap_button = gr.Button("Swap Languages")
91
  swap_button.click(fn=swap_languages, inputs=[sselected_language, tselected_language], outputs=[sselected_language, tselected_language])
92
 
 
85
  input_text = gr.Textbox(label="Enter text to translate:", placeholder="Type your text here...")
86
 
87
  with gr.Row():
88
+ sselected_language = gr.Dropdown(choices=options, value = options[0][0], label="Source language", interactive=True)
89
+ tselected_language = gr.Dropdown(choices=options, value = options[1][0], label="Target language", interactive=True)
90
  swap_button = gr.Button("Swap Languages")
91
  swap_button.click(fn=swap_languages, inputs=[sselected_language, tselected_language], outputs=[sselected_language, tselected_language])
92