ACloudCenter commited on
Commit
5855f41
·
1 Parent(s): d5ff5d5

Modify so example questions submit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -220,12 +220,12 @@ with gr.Blocks(theme=theme) as demo:
220
  # Add examples inside the left column container
221
  with example_container:
222
  gr.Examples(
223
- fn=submit_question,
224
  examples=example_questions,
225
  inputs=msg,
 
 
226
  cache_examples=False,
227
  label="Example Questions"
228
-
229
  )
230
 
231
  transcribe_btn.click(
 
220
  # Add examples inside the left column container
221
  with example_container:
222
  gr.Examples(
 
223
  examples=example_questions,
224
  inputs=msg,
225
+ outputs=[msg, chatbot, thinking_box],
226
+ fn=lambda q: submit_question(q, transcript_state.value) if transcript_state.value else ("", [], ""),
227
  cache_examples=False,
228
  label="Example Questions"
 
229
  )
230
 
231
  transcribe_btn.click(