Ephraimmm commited on
Commit
97b72ac
·
verified ·
1 Parent(s): beb4390

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -376,27 +376,27 @@ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
376
  - Ask clear, specific questions for better answers
377
  """)
378
 
379
- # Event handlers
380
- submit_btn.click(
381
- fn=process_user_query,
382
- inputs=[query_input, search_terms_input],
383
- outputs=[answer_output, sources_output]
384
- )
385
-
386
- status_btn.click(
387
- fn=check_setup,
388
- outputs=status_output
389
- )
390
-
391
- # Example queries
392
- with gr.Row():
393
- gr.Examples(
394
- examples=[
395
- ["What is morbid Anatomy?", "morbid, Anatomy"],
396
- ["The transmission of nerves from one neuron to another is as a result of what?", "neuron, nerves, Dr Clement"],
397
- ],
398
  inputs=[query_input, search_terms_input],
399
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
 
401
 
402
  # Launch the app
 
376
  - Ask clear, specific questions for better answers
377
  """)
378
 
379
+ # Event handlers
380
+ submit_btn.click(
381
+ fn=process_user_query,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  inputs=[query_input, search_terms_input],
383
+ outputs=[answer_output, sources_output]
384
+ )
385
+
386
+ status_btn.click(
387
+ fn=check_setup,
388
+ outputs=status_output
389
+ )
390
+
391
+ # Example queries
392
+ with gr.Row():
393
+ gr.Examples(
394
+ examples=[
395
+ ["What is morbid Anatomy?", "morbid, Anatomy"],
396
+ ["The transmission of nerves from one neuron to another is as a result of what?", "neuron, nerves, Dr Clement"],
397
+ ],
398
+ inputs=[query_input, search_terms_input],
399
+ )
400
 
401
 
402
  # Launch the app