integrated biomedllama
Browse files
app.py
CHANGED
@@ -352,7 +352,7 @@ with gr.Blocks() as demo:
|
|
352 |
with gr.Column():
|
353 |
image_input = gr.Image(type="filepath", label="Input Image")
|
354 |
prompt_input = gr.Textbox(
|
355 |
-
lines=
|
356 |
placeholder="Ask any question about the medical image...",
|
357 |
label="Question/Prompt"
|
358 |
)
|
@@ -377,11 +377,12 @@ with gr.Blocks() as demo:
|
|
377 |
lines=10
|
378 |
)
|
379 |
|
380 |
-
# Examples section
|
381 |
gr.Examples(
|
382 |
examples=IMAGE_PROCESSING_EXAMPLES,
|
383 |
inputs=[image_input, prompt_input],
|
384 |
outputs=[output_gallery, analysis_output, detected_modality],
|
|
|
385 |
cache_examples=True,
|
386 |
)
|
387 |
|
|
|
352 |
with gr.Column():
|
353 |
image_input = gr.Image(type="filepath", label="Input Image")
|
354 |
prompt_input = gr.Textbox(
|
355 |
+
lines=2,
|
356 |
placeholder="Ask any question about the medical image...",
|
357 |
label="Question/Prompt"
|
358 |
)
|
|
|
377 |
lines=10
|
378 |
)
|
379 |
|
380 |
+
# Examples section - Fixed version
|
381 |
gr.Examples(
|
382 |
examples=IMAGE_PROCESSING_EXAMPLES,
|
383 |
inputs=[image_input, prompt_input],
|
384 |
outputs=[output_gallery, analysis_output, detected_modality],
|
385 |
+
fn=process_image,
|
386 |
cache_examples=True,
|
387 |
)
|
388 |
|