Update modules/machine_failure.py

#2
by pranshh - opened
Files changed (1) hide show
  1. modules/machine_failure.py +2 -2
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('/upload', methods=['POST'])
118
- def upload_file():
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'))