Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,15 @@ with gr.Blocks() as demo:
|
|
49 |
generate_button_custom = gr.Button("Generate")
|
50 |
output_text_custom = gr.Textbox(label="Response")
|
51 |
generate_button_custom.click(fn=generate, inputs=[image_input_custom, prompt_input_custom], outputs=output_text_custom)
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
with gr.Accordion("Anatomical Feature Analysis"):
|
54 |
anatomies = [
|
55 |
"Airway", "Breathing", "Cardiac", "Diaphragm",
|
|
|
49 |
generate_button_custom = gr.Button("Generate")
|
50 |
output_text_custom = gr.Textbox(label="Response")
|
51 |
generate_button_custom.click(fn=generate, inputs=[image_input_custom, prompt_input_custom], outputs=output_text_custom)
|
52 |
+
example_prompt = "65 y/m Chronic cough and weight loss x 6 months. Chest X-rays normal. Consulted multiple pulmonologists with not much benefit. One wise pulmonologist thinks of GERD and sends him to the Gastro department. Can you name the classical finding here?"
|
53 |
+
example_image_path = os.path.join(os.path.dirname(__file__), "hegde.jpg")
|
54 |
+
gr.Examples(
|
55 |
+
examples=[[example_image_path, example_prompt]],
|
56 |
+
inputs=[image_input_custom, prompt_input_custom],
|
57 |
+
outputs=[output_text_custom],
|
58 |
+
cache_examples=True
|
59 |
+
)
|
60 |
+
|
61 |
with gr.Accordion("Anatomical Feature Analysis"):
|
62 |
anatomies = [
|
63 |
"Airway", "Breathing", "Cardiac", "Diaphragm",
|