Spaces:
Running
Running
Update restful/onnx_utilities.py
Browse files
restful/onnx_utilities.py
CHANGED
@@ -60,8 +60,12 @@ class Utilities:
|
|
60 |
lst_seq = np.roll(lst_seq, shift=-1, axis=1)
|
61 |
lst_seq[:, -1, -1] = value
|
62 |
|
|
|
|
|
|
|
|
|
63 |
predictions = [
|
64 |
-
{'date': date
|
65 |
for date, price in predicted_prices.items()
|
66 |
]
|
67 |
|
|
|
60 |
lst_seq = np.roll(lst_seq, shift=-1, axis=1)
|
61 |
lst_seq[:, -1, -1] = value
|
62 |
|
63 |
+
# predictions = [
|
64 |
+
# {'date': date.strftime('%Y-%m-%d'), 'price': float(price)}
|
65 |
+
# for date, price in predicted_prices.items()
|
66 |
+
# ]
|
67 |
predictions = [
|
68 |
+
{'date': date, 'price': float(price)}
|
69 |
for date, price in predicted_prices.items()
|
70 |
]
|
71 |
|