Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,8 +85,14 @@ with gr.Blocks() as demo:
|
|
| 85 |
|
| 86 |
output_box = gr.Textbox(label="Med-Gemma Output", lines=5)
|
| 87 |
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
# Launch the app
|
| 91 |
if __name__ == "__main__":
|
| 92 |
-
demo.launch()
|
|
|
|
| 85 |
|
| 86 |
output_box = gr.Textbox(label="Med-Gemma Output", lines=5)
|
| 87 |
|
| 88 |
+
submit_btn = gr.Button("Analyze")
|
| 89 |
+
|
| 90 |
+
submit_btn.click(
|
| 91 |
+
fn=analyze_medical_image,
|
| 92 |
+
inputs=[image_input, question_input],
|
| 93 |
+
outputs=output_box
|
| 94 |
+
)
|
| 95 |
|
| 96 |
# Launch the app
|
| 97 |
if __name__ == "__main__":
|
| 98 |
+
demo.launch()
|