Spaces:
Sleeping
Sleeping
thanthamky
commited on
Commit
•
e062871
1
Parent(s):
f94d16b
Update src/app.py
Browse files- src/app.py +0 -3
src/app.py
CHANGED
@@ -24,9 +24,6 @@ def home():
|
|
24 |
def predict():
|
25 |
form_data = request.form.to_dict()
|
26 |
preprocessed_data = utils.preprocess(form_data)
|
27 |
-
|
28 |
-
print(pd.DataFrame(preprocessed_data, index=[0]))
|
29 |
-
pd.DataFrame(preprocessed_data, index=[0]).to_csv('./sample.csv')
|
30 |
probability = model.predict_proba(pd.DataFrame(preprocessed_data, index=[0]))
|
31 |
return render_template("result.html", probability=f"{probability[0, 1] * 100:.2f}")
|
32 |
|
|
|
24 |
def predict():
|
25 |
form_data = request.form.to_dict()
|
26 |
preprocessed_data = utils.preprocess(form_data)
|
|
|
|
|
|
|
27 |
probability = model.predict_proba(pd.DataFrame(preprocessed_data, index=[0]))
|
28 |
return render_template("result.html", probability=f"{probability[0, 1] * 100:.2f}")
|
29 |
|