Spaces:
Running
on
Zero
Running
on
Zero
Turns off API for .submit event
Browse files
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]
|