1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-06-06 06:41:55 +00:00
This commit is contained in:
Newnius 2020-05-02 21:31:54 +08:00
parent 277fd2636a
commit b9b9f03428

View File

@ -208,13 +208,11 @@ class MyHandler(BaseHTTPRequestHandler):
msg = {'code': 0, 'error': ""}
pred, success = predict(job, int(seq))
print(pred)
print(type(pred))
if not success:
msg = {'code': 2, 'error': "Job " + job + " not exist"}
else:
msg = {'code': 0, 'error': "", "total": pred}
msg = {'code': 0, 'error': "", "total": int(pred)}
except Exception as e:
track = traceback.format_exc()
print(track)