Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -262,10 +262,11 @@ def main():
|
|
262 |
st.code(fen_notation)
|
263 |
|
264 |
# Initialize the Stockfish engine
|
|
|
265 |
stockfish = Stockfish(
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
)
|
270 |
|
271 |
# Predict the next move
|
|
|
262 |
st.code(fen_notation)
|
263 |
|
264 |
# Initialize the Stockfish engine
|
265 |
+
stockfish_path = os.path.join(os.getcwd(), "stockfish-ubuntu-x86-64-sse41-popcnt")
|
266 |
stockfish = Stockfish(
|
267 |
+
path=stockfish_path,
|
268 |
+
depth=15,
|
269 |
+
parameters={"Threads": 2, "Minimum Thinking Time": 30}
|
270 |
)
|
271 |
|
272 |
# Predict the next move
|