Spaces:
Runtime error
Runtime error
Faisal
commited on
Commit
Β·
8c2fe6b
1
Parent(s):
403972d
Restore GPU version - remove CPU optimizations and restore GPU-compatible dependencies
Browse files
app.py
CHANGED
|
@@ -149,18 +149,17 @@ with gr.Blocks(title="Brain MRI QA") as demo:
|
|
| 149 |
# Left column
|
| 150 |
with gr.Column():
|
| 151 |
image_input = gr.Image(type="filepath", label="Upload Medical Image")
|
| 152 |
-
question_box = gr.Textbox(
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
| 156 |
submit_btn = gr.Button("Submit")
|
| 157 |
-
with gr.Column():
|
| 158 |
clear_btn = gr.Button("Clear")
|
| 159 |
|
| 160 |
-
|
| 161 |
# Right column
|
| 162 |
with gr.Column():
|
| 163 |
-
# llm_output = gr.Textbox(label="Detailed LLM Answer", interactive=False, lines=10)
|
| 164 |
llm_output = gr.Markdown(label="Detailed LLM Answer")
|
| 165 |
|
| 166 |
submit_btn.click(
|
|
|
|
| 149 |
# Left column
|
| 150 |
with gr.Column():
|
| 151 |
image_input = gr.Image(type="filepath", label="Upload Medical Image")
|
| 152 |
+
question_box = gr.Textbox(
|
| 153 |
+
label="Your Question about the Image",
|
| 154 |
+
placeholder="Type your question here..."
|
| 155 |
+
)
|
| 156 |
+
# Buttons side by side
|
| 157 |
+
with gr.Row():
|
| 158 |
submit_btn = gr.Button("Submit")
|
|
|
|
| 159 |
clear_btn = gr.Button("Clear")
|
| 160 |
|
|
|
|
| 161 |
# Right column
|
| 162 |
with gr.Column():
|
|
|
|
| 163 |
llm_output = gr.Markdown(label="Detailed LLM Answer")
|
| 164 |
|
| 165 |
submit_btn.click(
|