Shriharsh commited on
Commit
674726b
·
verified ·
1 Parent(s): b0d1299

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -240,6 +240,9 @@ def diabetes_bot(query, pdf_file=None):
240
  return answer + usage_message
241
 
242
  # Gradio interface
 
 
 
243
  with gr.Blocks() as app:
244
  gr.Markdown(
245
  """
@@ -253,19 +256,16 @@ with gr.Blocks() as app:
253
  The information provided by this chatbot is for research and informational purposes only and is not intended to substitute professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.
254
  </div>
255
  <br>
256
- *Example Queries:*
257
- - "What is new with type 2 diabetes management research?"
258
- - "Tell me about new treatments in diabetes if any."
259
  """
260
  )
261
 
262
  with gr.Row():
263
- query_input = gr.Textbox(label="Ask a Question", placeholder="Type your diabetes-related query here...", lines=2)
264
  with gr.Column(scale=0.5):
265
  pdf_input = gr.File(label="Upload a PDF (optional, max 10 pages)", file_types=[".pdf"])
266
 
267
  with gr.Row():
268
- submit_button = gr.Button("Submit", variant="primary")
269
  clear_button = gr.Button("Clear")
270
 
271
  output = gr.Textbox(label="Answer", lines=15)
 
240
  return answer + usage_message
241
 
242
  # Gradio interface
243
+
244
+
245
+
246
  with gr.Blocks() as app:
247
  gr.Markdown(
248
  """
 
256
  The information provided by this chatbot is for research and informational purposes only and is not intended to substitute professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.
257
  </div>
258
  <br>
 
 
 
259
  """
260
  )
261
 
262
  with gr.Row():
263
+ query_input = gr.Textbox(label="Ask a Question", placeholder="Type your diabetes-related query here...", lines=3)
264
  with gr.Column(scale=0.5):
265
  pdf_input = gr.File(label="Upload a PDF (optional, max 10 pages)", file_types=[".pdf"])
266
 
267
  with gr.Row():
268
+ submit_button = gr.Button("Submit")
269
  clear_button = gr.Button("Clear")
270
 
271
  output = gr.Textbox(label="Answer", lines=15)