AIMLdeepanshu commited on
Commit
5ed2351
·
verified ·
1 Parent(s): 3d6a524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -57,7 +57,6 @@ def predict(*inputs):
57
  else:
58
  return f"✅ Likely Alzheimer’s Negative ({100 - percent}%)"
59
 
60
- # ✅ Gradio Interface
61
  demo = gr.Interface(
62
  fn=predict,
63
  title="🧠 Alzheimer's Disease Prediction (Random Forest)",
@@ -80,15 +79,10 @@ demo = gr.Interface(
80
  gr.Radio(["Low", "Medium", "High"], label="Social Engagement Level"),
81
  gr.Radio(["Low", "Medium", "High"], label="Stress Levels"),
82
  ],
83
- gr.Interface(
84
- fn=predict,
85
- inputs=input_components, # ✅ comma added here
86
- outputs=gr.Text(label="Prediction Result")
87
- )
88
-
89
-
90
  theme="default"
91
  )
92
 
 
93
  if __name__ == "__main__":
94
  demo.launch()
 
57
  else:
58
  return f"✅ Likely Alzheimer’s Negative ({100 - percent}%)"
59
 
 
60
  demo = gr.Interface(
61
  fn=predict,
62
  title="🧠 Alzheimer's Disease Prediction (Random Forest)",
 
79
  gr.Radio(["Low", "Medium", "High"], label="Social Engagement Level"),
80
  gr.Radio(["Low", "Medium", "High"], label="Stress Levels"),
81
  ],
82
+ outputs=gr.Text(label="Prediction Result"), # ✅ Correct usage
 
 
 
 
 
 
83
  theme="default"
84
  )
85
 
86
+
87
  if __name__ == "__main__":
88
  demo.launch()