fffiloni commited on
Commit
76cf10d
·
verified ·
1 Parent(s): 71f2c1a

Turns off API for .submit event

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -161,7 +161,7 @@ with gr.Blocks(css=css) as demo:
161
 
162
 
163
  text_input.submit(
164
- gradio_answer, [speech, text_input, num_beams, temperature, top_p], [answer]
165
  )
166
  submit_btn.click(
167
  gradio_answer, [speech, text_input, num_beams, temperature, top_p], [answer]
 
161
 
162
 
163
  text_input.submit(
164
+ gradio_answer, [speech, text_input, num_beams, temperature, top_p], [answer], show_api=False
165
  )
166
  submit_btn.click(
167
  gradio_answer, [speech, text_input, num_beams, temperature, top_p], [answer]