ACloudCenter commited on
Commit
d5ff5d5
·
1 Parent(s): 070a7dd

Modify so example questions submit

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -203,16 +203,7 @@ with gr.Blocks(theme=theme) as demo:
203
  max_lines=10,
204
  interactive=False
205
  )
206
-
207
- # Add examples inside the left column container
208
- with example_container:
209
- gr.Examples(
210
- examples=example_questions,
211
- inputs=msg,
212
- cache_examples=False,
213
- label=""
214
- )
215
-
216
  # Event handlers
217
  def submit_question(question, transcript):
218
  if not question or question.strip() == "":
@@ -225,6 +216,17 @@ with gr.Blocks(theme=theme) as demo:
225
  ]
226
  return "", messages, thinking
227
 
 
 
 
 
 
 
 
 
 
 
 
228
 
229
  transcribe_btn.click(
230
  fn=disable_transcribe,
 
203
  max_lines=10,
204
  interactive=False
205
  )
206
+
 
 
 
 
 
 
 
 
 
207
  # Event handlers
208
  def submit_question(question, transcript):
209
  if not question or question.strip() == "":
 
216
  ]
217
  return "", messages, thinking
218
 
219
+
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(
232
  fn=disable_transcribe,