Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ model = LoadModel('deployment/models/heart_attack_detection_model_99.3%.pkl')
|
|
| 9 |
@app.route('/',methods=['GET'])
|
| 10 |
def home():
|
| 11 |
print("Rendering home page...") # Debug log
|
| 12 |
-
return render_template('home.html')
|
| 13 |
|
| 14 |
@app.route('/predict', methods=['POST'])
|
| 15 |
def predict():
|
|
@@ -17,7 +17,7 @@ def predict():
|
|
| 17 |
inputs = request.form.to_dict()
|
| 18 |
prediction = GetPredictions(model, inputs)
|
| 19 |
|
| 20 |
-
return render_template('result.html', prediction=prediction)
|
| 21 |
|
| 22 |
if __name__ == '__main__':
|
| 23 |
app.run(host="0.0.0.0", port=7860)
|
|
|
|
| 9 |
@app.route('/',methods=['GET'])
|
| 10 |
def home():
|
| 11 |
print("Rendering home page...") # Debug log
|
| 12 |
+
return render_template('deployment/templates/home.html')
|
| 13 |
|
| 14 |
@app.route('/predict', methods=['POST'])
|
| 15 |
def predict():
|
|
|
|
| 17 |
inputs = request.form.to_dict()
|
| 18 |
prediction = GetPredictions(model, inputs)
|
| 19 |
|
| 20 |
+
return render_template('deployment/templates/result.html', prediction=prediction)
|
| 21 |
|
| 22 |
if __name__ == '__main__':
|
| 23 |
app.run(host="0.0.0.0", port=7860)
|