Amogh1221 commited on
Commit
d63baf9
·
verified ·
1 Parent(s): 04f0c88

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
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": 128, "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": 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)}")