Siyad798 commited on
Commit
ba882c4
·
verified ·
1 Parent(s): 2de8d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -208,7 +208,7 @@ 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
- # --- 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)")
 
208
  except Exception as e: final_report_content = f"Critical Error: {str(e)}"
209
  return final_report_content
210
 
211
+ # Safe initialization without arguments
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)")