Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 147 |
|
| 148 |
gr.HTML(article)
|
| 149 |
|
| 150 |
-
clean_btn.click(clean_components, inputs=[], outputs=[record_input, error_handler, whisper_tr, gpt_response, share_group, clean_btn])
|
| 151 |
send_btn.click(infer, inputs=[record_input, openai_api_key], outputs=[whisper_tr, gpt_response, error_handler, share_group, clean_btn])
|
| 152 |
share_button.click(None, [], [], _js=share_js)
|
| 153 |
|
|
|
|
| 147 |
|
| 148 |
gr.HTML(article)
|
| 149 |
|
| 150 |
+
clean_btn.click(clean_components, scroll_to_output=True, inputs=[], outputs=[record_input, error_handler, whisper_tr, gpt_response, share_group, clean_btn])
|
| 151 |
send_btn.click(infer, inputs=[record_input, openai_api_key], outputs=[whisper_tr, gpt_response, error_handler, share_group, clean_btn])
|
| 152 |
share_button.click(None, [], [], _js=share_js)
|
| 153 |
|