Sa-m commited on
Commit
11e03d8
·
verified ·
1 Parent(s): 8f12136

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,10 +16,11 @@ with gr.Blocks(title='Translation') as app:
16
  with gr.Row():
17
  inp_text = gr.Textbox(label='Input Text', lines=3)
18
  with gr.Row():
19
- output = gr.Textbox(label='Translated Text', lines=3)
20
  with gr.Row():
21
  translate_btn = gr.Button("Translate")
22
 
23
  translate_btn.click(fn=translation, inputs=inp_text, outputs=output)
24
 
25
- app.launch(enable_queue=True)
 
 
16
  with gr.Row():
17
  inp_text = gr.Textbox(label='Input Text', lines=3)
18
  with gr.Row():
19
+ output = gr.Textbox(label='Output', lines=3)
20
  with gr.Row():
21
  translate_btn = gr.Button("Translate")
22
 
23
  translate_btn.click(fn=translation, inputs=inp_text, outputs=output)
24
 
25
+ # Use queue=True instead of enable_queue=True
26
+ app.launch(queue=True)