simran19 commited on
Commit
dd1a6b5
·
verified ·
1 Parent(s): 4978695

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def pred():
25
  scaled_input=scaler.transform(user_input)
26
  prediction=model.predict(scaled_input)
27
  predict=scaler_y.inverse_transform(prediction.reshape(-1,1))
28
- return render_template('index.html',result=predict)
29
 
30
  if __name__=='__main__':
31
  app.run(debug=True)
 
25
  scaled_input=scaler.transform(user_input)
26
  prediction=model.predict(scaled_input)
27
  predict=scaler_y.inverse_transform(prediction.reshape(-1,1))
28
+ return render_template('index.html',result=predict[0][0])
29
 
30
  if __name__=='__main__':
31
  app.run(debug=True)