Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,9 @@ def cardio(age,is_male,ap_hi,ap_lo,cholesterol,gluc,smoke,alco,active,height,wei
|
|
26 |
|
27 |
pred = model.predict(df)[0]
|
28 |
if pred==1:
|
29 |
-
predicted="
|
30 |
else:
|
31 |
-
predicted="
|
32 |
return predicted
|
33 |
|
34 |
iface = gr.Interface(
|
|
|
26 |
|
27 |
pred = model.predict(df)[0]
|
28 |
if pred==1:
|
29 |
+
predicted="Tiene un riesgo alto de sufrir problemas cardiovasculares"
|
30 |
else:
|
31 |
+
predicted="Su riesgo de sufrir problemas cardiovasculares es muy bajo. Siga así."
|
32 |
return predicted
|
33 |
|
34 |
iface = gr.Interface(
|