Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ def predict_diabetes_func(Pregnancies, Glucose, BloodPressure, SkinThickness, In
|
|
11 |
prediction = diabetes_classifier.predict(input_df)
|
12 |
return "Positive" if prediction[0] == 1 else "Negative"
|
13 |
|
14 |
-
iface = gr.Interface( title = "Mashdemy AI Demo _Diabetes Prediction App"
|
15 |
-
description = "Enter the various parameters and click submit to know if the result is Positive or Negative"
|
16 |
fn=predict_diabetes_func, # Updated function name
|
17 |
inputs=[
|
18 |
gr.Number(label="Pregnancies"),
|
|
|
11 |
prediction = diabetes_classifier.predict(input_df)
|
12 |
return "Positive" if prediction[0] == 1 else "Negative"
|
13 |
|
14 |
+
iface = gr.Interface( title = "Mashdemy AI Demo _Diabetes Prediction App",
|
15 |
+
description = "Enter the various parameters and click submit to know if the result is Positive or Negative",
|
16 |
fn=predict_diabetes_func, # Updated function name
|
17 |
inputs=[
|
18 |
gr.Number(label="Pregnancies"),
|