Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def cardio(age,is_male,ap_hi,ap_lo,cholesterol,gluc,smoke,alco,active,height,wei
|
|
8 |
model = load('cardiosight.joblib')
|
9 |
df = pd.DataFrame.from_dict(
|
10 |
{
|
11 |
-
"age": [age],
|
12 |
"gender":[0 if is_male else 1],
|
13 |
"ap_hi": [ap_hi],
|
14 |
"ap_lo": [ap_lo],
|
|
|
8 |
model = load('cardiosight.joblib')
|
9 |
df = pd.DataFrame.from_dict(
|
10 |
{
|
11 |
+
"age": [age]*365,
|
12 |
"gender":[0 if is_male else 1],
|
13 |
"ap_hi": [ap_hi],
|
14 |
"ap_lo": [ap_lo],
|