Siyad798 commited on
Commit
b7f8ba3
·
verified ·
1 Parent(s): e3800a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- custom_theme = gr.themes.Soft(primary_hue="emerald", secondary_hue="neutral")
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():