mirror of
https://github.com/newnius/YAO-optimizer.git
synced 2025-12-15 17:06:44 +00:00
update
This commit is contained in:
3
serve.py
3
serve.py
@@ -19,6 +19,7 @@ from keras.layers import LSTM
|
||||
from math import sqrt
|
||||
import numpy
|
||||
import random
|
||||
import traceback
|
||||
|
||||
PORT_NUMBER = 8080
|
||||
lock = Lock()
|
||||
@@ -216,6 +217,8 @@ class MyHandler(BaseHTTPRequestHandler):
|
||||
if not success:
|
||||
msg = {'code': 2, 'error': "Job " + job + " not exist"}
|
||||
except Exception as e:
|
||||
track = traceback.format_exc()
|
||||
print(track)
|
||||
msg = {'code': 1, 'error': str(e)}
|
||||
|
||||
self.send_response(200)
|
||||
|
||||
Reference in New Issue
Block a user