Ephraimmm commited on
Commit
495f495
·
verified ·
1 Parent(s): 224f472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -34
app.py CHANGED
@@ -345,48 +345,48 @@ with gr.Blocks(title="Study Buddy", theme=gr.themes.Soft()) as app:
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")
361
- gr.Markdown("""
362
 
363
- **Important Notes:**
364
 
365
- 1.Only documents shared with studybuddy, it can answer
366
 
367
- **File Types Supported:**
368
- - Google Docs
369
- - Google Sheets
370
- - PDF files
371
- - Text files
372
 
373
- **Tips:**
374
- - Use specific search terms for better results
375
- - The system searches the top 3 most relevant files
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():
 
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")
361
+ # gr.Markdown("""
362
 
363
+ # **Important Notes:**
364
 
365
+ # 1.Only documents shared with studybuddy, it can answer
366
 
367
+ # **File Types Supported:**
368
+ # - Google Docs
369
+ # - Google Sheets
370
+ # - PDF files
371
+ # - Text files
372
 
373
+ # **Tips:**
374
+ # - Use specific search terms for better results
375
+ # - The system searches the top 3 most relevant files
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():