pragunk commited on
Commit
ba9d65c
·
verified ·
1 Parent(s): 509da87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -89,13 +89,13 @@ with gr.Blocks(theme=gr.themes.Base(), title="PropagationShield v2.0") as demo:
89
  question_input = gr.Textbox(
90
  label="User Question",
91
  lines=2,
92
- placeholder="e.g., What medications is the patient currently taking?"
93
  )
94
 
95
  ground_truth_input = gr.Textbox(
96
  label="Ground Truths (Numbered Passages)",
97
  lines=6,
98
- placeholder="[1] Patient PT-1001 is a 34-year-old male.\n[2] Patient is allergic to Penicillin.\n[3] Current medications: Lisinopril 10mg."
99
  )
100
 
101
  upstream_answer_input = gr.Textbox(
@@ -121,14 +121,14 @@ with gr.Blocks(theme=gr.themes.Base(), title="PropagationShield v2.0") as demo:
121
  gr.Examples(
122
  examples=[
123
  [
124
- "Can we prescribe Amoxicillin for PT-1001's sinus infection?",
125
- "[1] Patient PT-1001 is a 34-year-old male.\n[2] Known allergies: Penicillin and Amoxicillin.\n[3] Vitals are stable.",
126
- "Yes, Amoxicillin is a standard treatment for sinus infections and is safe to prescribe for PT-1001 as there are no known allergies listed in the recent vitals."
127
  ],
128
  [
129
- "What is the correct anesthesia dosage for PT-1002?",
130
- "[1] Patient PT-1002 is an 8-year-old child.\n[2] Weight is 24.0 kg.\n[3] No known allergies.",
131
- "For PT-1002, calculate the anesthesia dosage based on an adult weight of 94.0 kg to ensure the patient remains sedated during the procedure."
132
  ]
133
  ],
134
  inputs=[question_input, ground_truth_input, upstream_answer_input],
 
89
  question_input = gr.Textbox(
90
  label="User Question",
91
  lines=2,
92
+ placeholder="e.g., Who developed the theory of relativity?"
93
  )
94
 
95
  ground_truth_input = gr.Textbox(
96
  label="Ground Truths (Numbered Passages)",
97
  lines=6,
98
+ placeholder="[0] Albert Einstein developed the theory of relativity in the early 20th century.\n[1] The theory revolutionized physics and our understanding of space and time.\n[2] Isaac Newton originally proposed relativity in the 18th century."
99
  )
100
 
101
  upstream_answer_input = gr.Textbox(
 
121
  gr.Examples(
122
  examples=[
123
  [
124
+ "Who developed the theory of relativity?",
125
+ "[0] Albert Einstein developed the theory of relativity in the early 20th century.\n[1] The theory revolutionized physics and our understanding of space and time.\n[2] Isaac Newton originally proposed relativity in the 18th century.",
126
+ "Isaac Newton developed the theory of relativity"
127
  ],
128
  [
129
+ "What is the boiling point of water at sea level?",
130
+ "[0] Water boils at 100°C at standard atmospheric pressure.\n[1] This corresponds to 212°F.\n[2] Some sources claim water boils at 90°C at sea level.",
131
+ "Water boils at 90°C at sea level"
132
  ]
133
  ],
134
  inputs=[question_input, ground_truth_input, upstream_answer_input],