davda54 commited on
Commit
f0d928c
β€’
1 Parent(s): 8ae3341

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -148,9 +148,6 @@ with gr.Blocks(theme='sudeepshouche/minimalist') as demo:
148
  ) # .style(container=False)
149
  submit = gr.Button("Submit", variant="primary") # .style(full_width=True)
150
 
151
- # with gr.Column(scale=1, variant=None):
152
- # switch = gr.Button("πŸ”„")
153
-
154
  with gr.Column(scale=7, variant="panel"):
155
  target_language = gr.Dropdown(
156
  LANGUAGES, value=LANGUAGES[0], show_label=False
@@ -193,17 +190,5 @@ with gr.Blocks(theme='sudeepshouche/minimalist') as demo:
193
  fn=update_state_after_return, inputs=None, outputs=[source, submit, source_language, target_language], queue=False
194
  )
195
 
196
- # switch_event = switch.click(
197
- # fn=switch_inputs, inputs=[source, target, source_language, target_language], outputs=[target, source, target_language, source_language], queue=False
198
- # ).then(
199
- # fn=update_state_after_user, inputs=None, outputs=[source, submit, source_language, target_language], queue=False
200
- # ).then(
201
- # fn=set_default_target, inputs=[], outputs=[target], queue=False
202
- # ).then(
203
- # fn=translate, inputs=[source, source_language, target_language], outputs=[target], queue=True
204
- # ).then(
205
- # fn=update_state_after_return, inputs=None, outputs=[source, submit, source_language, target_language], queue=False
206
- # )
207
-
208
  demo.queue(max_size=32, concurrency_count=2)
209
  demo.launch()
 
148
  ) # .style(container=False)
149
  submit = gr.Button("Submit", variant="primary") # .style(full_width=True)
150
 
 
 
 
151
  with gr.Column(scale=7, variant="panel"):
152
  target_language = gr.Dropdown(
153
  LANGUAGES, value=LANGUAGES[0], show_label=False
 
190
  fn=update_state_after_return, inputs=None, outputs=[source, submit, source_language, target_language], queue=False
191
  )
192
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  demo.queue(max_size=32, concurrency_count=2)
194
  demo.launch()