Theob commited on
Commit
4901a7e
·
verified ·
1 Parent(s): 8ecbf61

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -86,7 +86,7 @@ class EndpointHandler:
86
  pair, freq = inputs["pair"], inputs["frequency"]
87
  pair = "".join(pair.split("/"))
88
  pair = f"binance.{pair.upper()}" if "." not in pair else pair
89
- timestamps = torch.tensor(inputs["timestamps"])
90
  samples = torch.tensor([inputs["open"], inputs["high"], inputs["low"], inputs["close"], inputs["volume"]], dtype=torch.float32).T.contiguous()
91
  steps = data.pop("steps", 4)
92
  n_scenarios = data.pop("n_scenarios", 32)
 
86
  pair, freq = inputs["pair"], inputs["frequency"]
87
  pair = "".join(pair.split("/"))
88
  pair = f"binance.{pair.upper()}" if "." not in pair else pair
89
+ timestamps = torch.tensor(list(map(int, inputs["timestamps"])))
90
  samples = torch.tensor([inputs["open"], inputs["high"], inputs["low"], inputs["close"], inputs["volume"]], dtype=torch.float32).T.contiguous()
91
  steps = data.pop("steps", 4)
92
  n_scenarios = data.pop("n_scenarios", 32)
Free AI Image Generator No sign-up. Instant results. Open Now