reset to biomedparse+biomedllama_3b_multimodal
Browse files
app.py
CHANGED
@@ -473,6 +473,12 @@ with gr.Blocks() as demo:
|
|
473 |
lines=10
|
474 |
)
|
475 |
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
submit_btn.click(
|
477 |
fn=process_image,
|
478 |
inputs=[image_input, prompt_input],
|
|
|
473 |
lines=10
|
474 |
)
|
475 |
|
476 |
+
# Add this to clear outputs when input image is cleared
|
477 |
+
image_input.clear(
|
478 |
+
lambda: ([], "", ""),
|
479 |
+
outputs=[output_gallery, analysis_output, detected_modality]
|
480 |
+
)
|
481 |
+
|
482 |
submit_btn.click(
|
483 |
fn=process_image,
|
484 |
inputs=[image_input, prompt_input],
|