pablo-rf commited on
Commit
4b8ba13
1 Parent(s): 1e35934

Wait to change lang

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -190,7 +190,7 @@ def gradio_app():
190
  generator_btn.click(predict, inputs=[text_gl, model_select, max_length, repetition_penalty, temperature], outputs=generated_gl, api_name="generate-flor-gl")
191
  clean_btn.click(fn=clear, inputs=[], outputs=[text_gl, generated_gl, max_length, repetition_penalty, temperature], queue=False, api_name=False)
192
  pass_btn.click(fn=pass_to_input, inputs=[generated_gl], outputs=[text_gl,generated_gl], queue=False, api_name=False)
193
- change_lang.click(fn=change_language, inputs=[demo], outputs=[], queue=False, api_name=False, live=True)
194
 
195
  with gr.Row():
196
  with gr.Column(scale=0.5):
 
190
  generator_btn.click(predict, inputs=[text_gl, model_select, max_length, repetition_penalty, temperature], outputs=generated_gl, api_name="generate-flor-gl")
191
  clean_btn.click(fn=clear, inputs=[], outputs=[text_gl, generated_gl, max_length, repetition_penalty, temperature], queue=False, api_name=False)
192
  pass_btn.click(fn=pass_to_input, inputs=[generated_gl], outputs=[text_gl,generated_gl], queue=False, api_name=False)
193
+ change_lang.click(fn=change_language, inputs=[demo], outputs=[], queue=False, api_name=False)
194
 
195
  with gr.Row():
196
  with gr.Column(scale=0.5):