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

Example to call submit

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -221,11 +221,11 @@ with gr.Blocks(theme=theme) as demo:
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(
 
221
  with example_container:
222
  gr.Examples(
223
  examples=example_questions,
224
+ inputs=[msg, transcript_state],
225
  outputs=[msg, chatbot, thinking_box],
226
+ fn=submit_question,
227
  cache_examples=False,
228
+ label=""
229
  )
230
 
231
  transcribe_btn.click(