Spitfire1970
commited on
Commit
·
fd2e175
1
Parent(s):
5bb286b
- handler.py +1 -1
handler.py
CHANGED
@@ -288,7 +288,7 @@ class EndpointHandler():
|
|
288 |
test_board = board.copy()
|
289 |
test_board.push(board.parse_san(move_sans[move]))
|
290 |
print('here2')
|
291 |
-
response = requests.
|
292 |
if response.status_code == 500:
|
293 |
print('exiting ai_move endpoint status code after move')
|
294 |
return {"reply": best_move}
|
|
|
288 |
test_board = board.copy()
|
289 |
test_board.push(board.parse_san(move_sans[move]))
|
290 |
print('here2')
|
291 |
+
response = requests.post("http://13.49.80.182/stockfish_eval", json={"fen": test_board.fen()})
|
292 |
if response.status_code == 500:
|
293 |
print('exiting ai_move endpoint status code after move')
|
294 |
return {"reply": best_move}
|