Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,8 @@ def predict(age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hos
|
|
32 |
|
33 |
mLink = 'https://github.com/fmegahed/tavr_paper/blob/main/data/final_model.pkl?raw=true'
|
34 |
mfile = BytesIO(requests.get(mLink).content)
|
35 |
-
model =
|
|
|
36 |
|
37 |
df = pd.DataFrame.from_dict({
|
38 |
'age': [age], 'female': [female], 'race': [race], 'elective': elective,
|
|
|
32 |
|
33 |
mLink = 'https://github.com/fmegahed/tavr_paper/blob/main/data/final_model.pkl?raw=true'
|
34 |
mfile = BytesIO(requests.get(mLink).content)
|
35 |
+
model = pickle.load(mfile)
|
36 |
+
model = load_model(model)
|
37 |
|
38 |
df = pd.DataFrame.from_dict({
|
39 |
'age': [age], 'female': [female], 'race': [race], 'elective': elective,
|