Spaces:
Paused
Paused
Update app.py
Browse files
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)
|