VaneshDev commited on
Commit
9088c2f
·
verified ·
1 Parent(s): f2636a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py CHANGED
@@ -51,3 +51,28 @@ with gr.Blocks(css="""
51
  .submit-btn button:hover {
52
  background-color: #27ae60;
53
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  .submit-btn button:hover {
52
  background-color: #27ae60;
53
  }
54
+ """) as demo:
55
+
56
+ gr.Markdown("## 🩺 HealthMate")
57
+ gr.Markdown("### Your AI Health Assistant – Ask any health-related question")
58
+
59
+ with gr.Row():
60
+ with gr.Column():
61
+ user_input = gr.Textbox(
62
+ label="Enter your health question:",
63
+ placeholder="e.g., What medicine should I take for cold?",
64
+ lines=3,
65
+ elem_classes="textbox"
66
+ )
67
+ submit_btn = gr.Button("Get Advice", elem_classes="submit-btn")
68
+ with gr.Column():
69
+ output = gr.Textbox(
70
+ label="HealthMate Advice:",
71
+ lines=3,
72
+ interactive=False,
73
+ elem_classes="response-box"
74
+ )
75
+
76
+ submit_btn.click(fn=get_health_advice, inputs=user_input, outputs=output)
77
+
78
+ demo.launch()