Skip to content

Commit

Permalink
modify atmos pred
Browse files Browse the repository at this point in the history
key-value ๊ตฌ์กฐ๋กœ return๊ฐ’์„ ๋ณ€๊ฒฝํ•˜๋ฉด์„œ .tolist()๋กœ ์ธํ•ด ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๋˜ ๋ถ€๋ถ„์„ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • Loading branch information
chl8469 committed Oct 9, 2021
1 parent 7ef78f0 commit 22d57cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/router/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def sync_pred_ts(time_series):
f"Predict Args info: {time_series.flatten().tolist()}\n\tmodel_name: {my_model.model_name}\n\tPrediction Result: {result.tolist()[0]}"
)

return {"result": result, "error": None}
return {"result": result.tolist(), "error": None}

try:
result = await run_in_threadpool(sync_pred_ts, time_series)
return result.tolist()
return result

except Exception as e:
L.error(e)
Expand Down

0 comments on commit 22d57cb

Please sign in to comment.