qywok commited on
Commit
ca1bfd8
·
verified ·
1 Parent(s): 1e9352c

Update restful/onnx_utilities.py

Browse files
Files changed (1) hide show
  1. restful/onnx_utilities.py +5 -1
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.strftime('%Y-%m-%d'), 'price': float(price)}
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