Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,9 +208,8 @@ def predict_stroke_report(uploaded_file, patient_context_input):
|
|
| 208 |
except Exception as e: final_report_content = f"Critical Error: {str(e)}"
|
| 209 |
return final_report_content
|
| 210 |
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
with gr.Blocks(theme=custom_theme, title="Stroke Agent AI") as demo:
|
| 214 |
gr.Markdown("# 🧠 AI Stroke Diagnosis & Guideline Agent")
|
| 215 |
gr.Markdown("Integrates Vision AI (DenseNet) + Knowledge Graph (Neo4j) + LLM (Azure OpenAI)")
|
| 216 |
with gr.Row():
|
|
|
|
| 208 |
except Exception as e: final_report_content = f"Critical Error: {str(e)}"
|
| 209 |
return final_report_content
|
| 210 |
|
| 211 |
+
# --- CRITICAL FIX: Blocks initialized without ANY arguments to prevent version crashes ---
|
| 212 |
+
with gr.Blocks() as demo:
|
|
|
|
| 213 |
gr.Markdown("# 🧠 AI Stroke Diagnosis & Guideline Agent")
|
| 214 |
gr.Markdown("Integrates Vision AI (DenseNet) + Knowledge Graph (Neo4j) + LLM (Azure OpenAI)")
|
| 215 |
with gr.Row():
|