Spaces:
Runtime error
Runtime error
Faisal
commited on
Commit
Β·
8d2927d
1
Parent(s):
04d4545
Restore GPU version - remove CPU optimizations and restore GPU-compatible dependencies
Browse files
app.py
CHANGED
|
@@ -141,12 +141,11 @@ with gr.Blocks(title="Brain MRI QA") as demo:
|
|
| 141 |
# Left column
|
| 142 |
with gr.Column():
|
| 143 |
image_input = gr.Image(type="filepath", label="Upload Medical Image")
|
| 144 |
-
|
| 145 |
-
# Right column
|
| 146 |
-
with gr.Column():
|
| 147 |
question_box = gr.Textbox(label="Your Question about the Image", placeholder="Type your question here...")
|
| 148 |
submit_btn = gr.Button("Submit")
|
| 149 |
clear_btn = gr.Button("Clear")
|
|
|
|
|
|
|
| 150 |
llm_output = gr.Textbox(label="Detailed LLM Answer", interactive=False, lines=10)
|
| 151 |
|
| 152 |
submit_btn.click(
|
|
|
|
| 141 |
# Left column
|
| 142 |
with gr.Column():
|
| 143 |
image_input = gr.Image(type="filepath", label="Upload Medical Image")
|
|
|
|
|
|
|
|
|
|
| 144 |
question_box = gr.Textbox(label="Your Question about the Image", placeholder="Type your question here...")
|
| 145 |
submit_btn = gr.Button("Submit")
|
| 146 |
clear_btn = gr.Button("Clear")
|
| 147 |
+
# Right column
|
| 148 |
+
with gr.Column():
|
| 149 |
llm_output = gr.Textbox(label="Detailed LLM Answer", interactive=False, lines=10)
|
| 150 |
|
| 151 |
submit_btn.click(
|