Commit 0c5de3ac authored by Zhiwei Zhuang's avatar Zhiwei Zhuang
Browse files

fix :Object of type int32 is not JSON serializable

parent a007bacb
......@@ -15,7 +15,7 @@ from typing import Union
def _handle_non_serializable(o):
if isinstance(o, np.int64):
if isinstance(o, np.int64) or isinstance(o, np.int32):
return int(o)
elif isinstance(o, set):
return list(o)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment