Spaces:
Runtime error
Runtime error
Commit
·
92e0d15
1
Parent(s):
c9ffbf7
Update app.py
Browse files
app.py
CHANGED
@@ -132,14 +132,14 @@ ds = np.array(ds)
|
|
132 |
|
133 |
predictions = model.predict(ds)
|
134 |
predictions
|
135 |
-
p = predictions[0][0]
|
|
|
136 |
p
|
137 |
#print(p)
|
138 |
a = np.array([0,0,0,p,0,0,0,0])
|
139 |
a
|
140 |
a = scaler.inverse_transform(a.reshape(1,-1))
|
141 |
a
|
142 |
-
a = scaler.inverse_transform(model.predict(ds).reshape(-1, 1))
|
143 |
|
144 |
|
145 |
final_prediction = a[-1][3]
|
|
|
132 |
|
133 |
predictions = model.predict(ds)
|
134 |
predictions
|
135 |
+
p = predictions[0][0][0]
|
136 |
+
p = float(p)
|
137 |
p
|
138 |
#print(p)
|
139 |
a = np.array([0,0,0,p,0,0,0,0])
|
140 |
a
|
141 |
a = scaler.inverse_transform(a.reshape(1,-1))
|
142 |
a
|
|
|
143 |
|
144 |
|
145 |
final_prediction = a[-1][3]
|