Spaces:
Sleeping
Sleeping
Update app.py
Browse filesfixed deployment dependency errors.
app.py
CHANGED
@@ -6,10 +6,9 @@ import numpy as np
|
|
6 |
import pandas as pd
|
7 |
import seaborn as sns
|
8 |
|
9 |
-
# Dummy Cox Proportional Hazard Prediction Function
|
10 |
def hazard_predictor(gender, age, bmi, diabetes_type, spb, dbp, hba1c, smoking, marital_status):
|
11 |
# Dummy hazard function with a limit of 0.95 (95%)
|
12 |
-
hazard_ratio = min((age / 50) * (bmi / 25) * (spb / 120) * (dbp / 80), 0.
|
13 |
return {'Hazard Ratio': hazard_ratio}
|
14 |
|
15 |
def plot_chart(hazard_ratio, age):
|
|
|
6 |
import pandas as pd
|
7 |
import seaborn as sns
|
8 |
|
|
|
9 |
def hazard_predictor(gender, age, bmi, diabetes_type, spb, dbp, hba1c, smoking, marital_status):
|
10 |
# Dummy hazard function with a limit of 0.95 (95%)
|
11 |
+
hazard_ratio = min((age / 50) * (bmi / 25) * (spb / 120) * (dbp / 80), 0.92)
|
12 |
return {'Hazard Ratio': hazard_ratio}
|
13 |
|
14 |
def plot_chart(hazard_ratio, age):
|