Ephraimmm commited on
Commit
06e37bc
·
verified ·
1 Parent(s): 5c007c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -22
app.py CHANGED
@@ -307,13 +307,23 @@ def check_setup():
307
 
308
  # Create Gradio interface
309
  import gradio as gr
310
- with gr.Blocks(title="Augusta's Anatomy Reading Assistant", theme=gr.themes.Soft()) as app:
311
- gr.Markdown("# 🤖 Augusta's Anatomy bot")
312
- gr.Markdown("Ask questions about your anatomy books using AI!")
313
 
314
  with gr.Row():
 
315
  with gr.Column(scale=2):
316
  # Main query interface
 
 
 
 
 
 
 
 
 
317
  with gr.Group():
318
  gr.Markdown("### Ask a Question")
319
  query_input = gr.Textbox(
@@ -345,16 +355,16 @@ with gr.Blocks(title="Augusta's Anatomy Reading Assistant", theme=gr.themes.Soft
345
  interactive=False
346
  )
347
 
348
- with gr.Column(scale=1):
349
- # Status and setup info
350
- with gr.Group():
351
- gr.Markdown("### System Status")
352
- status_btn = gr.Button("Check Status", size="sm")
353
- status_output = gr.Textbox(
354
- label="API Status",
355
- lines=4,
356
- interactive=False
357
- )
358
 
359
  with gr.Group():
360
  gr.Markdown("### Setup Instructions")
@@ -386,15 +396,7 @@ with gr.Blocks(title="Augusta's Anatomy Reading Assistant", theme=gr.themes.Soft
386
  outputs=status_output
387
  )
388
 
389
- # Example queries
390
- with gr.Row():
391
- gr.Examples(
392
- examples=[
393
- ["What is morbid Anatomy?", "morbid, Anatomy"],
394
- ["The transmission of nerves from one neuron to another is as a result of what?", "neuron, nerves, Dr Clement"],
395
- ],
396
- inputs=[query_input, search_terms_input],
397
- )
398
 
399
  # Launch the app
400
  if __name__ == "__main__":
 
307
 
308
  # Create Gradio interface
309
  import gradio as gr
310
+ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
311
+ gr.Markdown("# 300 Level Anatamomy Study Buddy Anatomy bot")
312
+ gr.Markdown("Study more effectively with study Buddy!")
313
 
314
  with gr.Row():
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(
 
355
  interactive=False
356
  )
357
 
358
+ # with gr.Column(scale=1):
359
+ # # Status and setup info
360
+ # with gr.Group():
361
+ # gr.Markdown("### System Status")
362
+ # status_btn = gr.Button("Check Status", size="sm")
363
+ # status_output = gr.Textbox(
364
+ # label="API Status",
365
+ # lines=4,
366
+ # interactive=False
367
+ # )
368
 
369
  with gr.Group():
370
  gr.Markdown("### Setup Instructions")
 
396
  outputs=status_output
397
  )
398
 
399
+
 
 
 
 
 
 
 
 
400
 
401
  # Launch the app
402
  if __name__ == "__main__":