Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,10 @@ def pred():
|
|
| 21 |
Close=float(request.form.get('close'))
|
| 22 |
Volume=float(request.form.get('volume'))
|
| 23 |
|
| 24 |
-
user_input=
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 27 |
return render_template('index.html',result=predict[0][0])
|
| 28 |
|
| 29 |
if __name__=='__main__':
|
|
|
|
| 21 |
Close=float(request.form.get('close'))
|
| 22 |
Volume=float(request.form.get('volume'))
|
| 23 |
|
| 24 |
+
user_input=[[161.62,166.40, 161.29, 165.09, 328095197.0 ]]
|
| 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__':
|