Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def model_prediction(age, height, weight, duration, heart_rate, body_temp, gende
|
|
38 |
elif model_input == "Linear Regressor":
|
39 |
model = load_lr()
|
40 |
else:
|
41 |
-
model
|
42 |
inputs = pd.DataFrame([{'Gender': gender, 'Age': age, 'Height': height, 'Weight': weight, 'Duration': duration, 'Heart_Rate': heart_rate, 'Body_Temp': body_temp}])
|
43 |
predictions = model.predict(inputs)
|
44 |
st.write("""# Prediction : """ , predictions)
|
|
|
38 |
elif model_input == "Linear Regressor":
|
39 |
model = load_lr()
|
40 |
else:
|
41 |
+
model = load_xgb()
|
42 |
inputs = pd.DataFrame([{'Gender': gender, 'Age': age, 'Height': height, 'Weight': weight, 'Duration': duration, 'Heart_Rate': heart_rate, 'Body_Temp': body_temp}])
|
43 |
predictions = model.predict(inputs)
|
44 |
st.write("""# Prediction : """ , predictions)
|