Benny-Tang commited on
Commit
37a088c
·
verified ·
1 Parent(s): 707146a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -112,6 +112,27 @@ with gr.Blocks(theme="soft") as demo:
112
 
113
  run_btn.click(run_all, inputs=[img_in, lab_in], outputs=[imaging_out, imaging_raw, lab_out, coord_out])
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  demo.launch()
116
 
117
 
 
112
 
113
  run_btn.click(run_all, inputs=[img_in, lab_in], outputs=[imaging_out, imaging_raw, lab_out, coord_out])
114
 
115
+ # Preload with demo samples
116
+ SAMPLE_XRAY = "samples/sample_xray.jpg"
117
+ SAMPLE_LABS = "PSA: 8 ng/mL\nCA125: 20 U/mL\nAFP: 15 ng/mL"
118
+
119
+ with gr.Blocks(theme="soft") as demo:
120
+ gr.Markdown("# 🏥 AI Diagnostics Agent: Early Cancer Discovery (Demo)")
121
+ gr.Markdown("Upload a chest X-ray or paste tumor marker labs.\n\n⚠️ Research demo only. Not for clinical use.")
122
+
123
+ with gr.Row():
124
+ with gr.Column():
125
+ img_in = gr.Image(type="filepath", label="Chest X-ray (PNG/JPG)", value=SAMPLE_XRAY)
126
+ imaging_out = gr.Textbox(label="Imaging Agent Output")
127
+ imaging_raw = gr.Code(label="Probabilities JSON", language="json")
128
+ with gr.Column():
129
+ lab_in = gr.Textbox(lines=6, label="Lab Results", value=SAMPLE_LABS)
130
+ lab_out = gr.Textbox(label="Lab Agent Output")
131
+
132
+ run_btn = gr.Button("Run Agents")
133
+ coord_out = gr.Textbox(label="Coordinator Summary", lines=10)
134
+
135
+
136
  demo.launch()
137
 
138