Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -128,15 +128,15 @@ async def get_engine():
|
|
| 128 |
|
| 129 |
try:
|
| 130 |
# Start the process
|
| 131 |
-
transport, engine = await chess.engine.popen_uci(ENGINE_PATH)
|
| 132 |
|
| 133 |
# Configure Engine (128MB Hash, Balanced for HF performance)
|
| 134 |
-
await engine.configure({"Hash":
|
| 135 |
|
| 136 |
if os.path.exists(NNUE_PATH):
|
| 137 |
try:
|
| 138 |
print(f"[DEBUG] Configuring EvalFile: {NNUE_PATH}")
|
| 139 |
-
await engine.configure({"EvalFile": NNUE_PATH})
|
| 140 |
print("[DEBUG] EvalFile configured successfully")
|
| 141 |
except Exception as e:
|
| 142 |
print(f"[ERROR] Failed to configure NNUE: {str(e)}")
|
|
|
|
| 128 |
|
| 129 |
try:
|
| 130 |
# Start the process
|
| 131 |
+
transport, engine = await chess.engine.popen_uci(str(ENGINE_PATH))
|
| 132 |
|
| 133 |
# Configure Engine (128MB Hash, Balanced for HF performance)
|
| 134 |
+
await engine.configure({"Hash": 64, "Threads": 1})
|
| 135 |
|
| 136 |
if os.path.exists(NNUE_PATH):
|
| 137 |
try:
|
| 138 |
print(f"[DEBUG] Configuring EvalFile: {NNUE_PATH}")
|
| 139 |
+
await engine.configure({"EvalFile": str(NNUE_PATH)})
|
| 140 |
print("[DEBUG] EvalFile configured successfully")
|
| 141 |
except Exception as e:
|
| 142 |
print(f"[ERROR] Failed to configure NNUE: {str(e)}")
|