Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -315,15 +315,6 @@ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
|
|
| 315 |
|
| 316 |
with gr.Column(scale=2):
|
| 317 |
# Main query interface
|
| 318 |
-
# Example queries
|
| 319 |
-
with gr.Row():
|
| 320 |
-
gr.Examples(
|
| 321 |
-
examples=[
|
| 322 |
-
["What is morbid Anatomy?", "morbid, Anatomy"],
|
| 323 |
-
["The transmission of nerves from one neuron to another is as a result of what?", "neuron, nerves, Dr Clement"],
|
| 324 |
-
],
|
| 325 |
-
inputs=[query_input, search_terms_input],
|
| 326 |
-
)
|
| 327 |
with gr.Group():
|
| 328 |
gr.Markdown("### Ask a Question")
|
| 329 |
query_input = gr.Textbox(
|
|
@@ -383,6 +374,7 @@ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
|
|
| 383 |
- The system searches the top 3 most relevant files
|
| 384 |
- Ask clear, specific questions for better answers
|
| 385 |
""")
|
|
|
|
| 386 |
|
| 387 |
# Event handlers
|
| 388 |
submit_btn.click(
|
|
@@ -396,7 +388,15 @@ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
|
|
| 396 |
outputs=status_output
|
| 397 |
)
|
| 398 |
|
| 399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 400 |
|
| 401 |
# Launch the app
|
| 402 |
if __name__ == "__main__":
|
|
|
|
| 315 |
|
| 316 |
with gr.Column(scale=2):
|
| 317 |
# Main query interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
with gr.Group():
|
| 319 |
gr.Markdown("### Ask a Question")
|
| 320 |
query_input = gr.Textbox(
|
|
|
|
| 374 |
- The system searches the top 3 most relevant files
|
| 375 |
- Ask clear, specific questions for better answers
|
| 376 |
""")
|
| 377 |
+
|
| 378 |
|
| 379 |
# Event handlers
|
| 380 |
submit_btn.click(
|
|
|
|
| 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 |
# Launch the app
|
| 402 |
if __name__ == "__main__":
|