Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,16 @@ def analyze(image):
|
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
gr.Markdown("## 🩺 ChestGPT - Chest X-Ray Diagnosis Assistant")
|
| 11 |
-
gr.Markdown("Upload a chest X-ray image
|
| 12 |
-
|
| 13 |
-
image_input = gr.Image(type="pil")
|
| 14 |
output_text = gr.Textbox(label="Diagnosis Output")
|
| 15 |
-
|
| 16 |
analyze_button = gr.Button("Analyze")
|
| 17 |
analyze_button.click(fn=analyze, inputs=image_input, outputs=output_text)
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
gr.Markdown("## 🩺 ChestGPT - Chest X-Ray Diagnosis Assistant")
|
| 11 |
+
gr.Markdown("Upload a chest X-ray image or try an example.")
|
| 12 |
+
|
| 13 |
+
image_input = gr.Image(type="pil", label="Chest X-Ray Input")
|
| 14 |
output_text = gr.Textbox(label="Diagnosis Output")
|
|
|
|
| 15 |
analyze_button = gr.Button("Analyze")
|
| 16 |
analyze_button.click(fn=analyze, inputs=image_input, outputs=output_text)
|
| 17 |
|
| 18 |
+
gr.Examples(
|
| 19 |
+
examples=["example_images/sample1.png"],
|
| 20 |
+
inputs=image_input
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
demo.queue().launch()
|