Update modules/machine_failure.py
#2
by
pranshh
- opened
modules/machine_failure.py
CHANGED
|
@@ -114,8 +114,8 @@ def preprocess_data(df, for_prediction=False, label_encoders=None):
|
|
| 114 |
def show_machine_failure():
|
| 115 |
return render_template('machine_failure.html', title="Machine Failure Prediction")
|
| 116 |
|
| 117 |
-
@machine_failure_bp.route('/
|
| 118 |
-
def
|
| 119 |
if 'machine_file' not in request.files:
|
| 120 |
flash('No file selected')
|
| 121 |
return redirect(url_for('machine_failure.show_machine_failure'))
|
|
|
|
| 114 |
def show_machine_failure():
|
| 115 |
return render_template('machine_failure.html', title="Machine Failure Prediction")
|
| 116 |
|
| 117 |
+
@machine_failure_bp.route('/upload_file', methods=['POST'])
|
| 118 |
+
def upload_file_machine():
|
| 119 |
if 'machine_file' not in request.files:
|
| 120 |
flash('No file selected')
|
| 121 |
return redirect(url_for('machine_failure.show_machine_failure'))
|