netrosec commited on
Commit
a262331
1 Parent(s): 75c6b8e

Update app.py

Browse files

fixed deployment dependency errors.

Files changed (1) hide show
  1. app.py +1 -2
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.95)
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):