sravaniamere commited on
Commit
cd6351a
·
1 Parent(s): f52aed3

fix indentation in main loop

Browse files
Files changed (1) hide show
  1. inference.py +3 -7
inference.py CHANGED
@@ -275,14 +275,10 @@ async def main() -> None:
275
  Otherwise run all three in sequence so all 3 tasks produce scores.
276
  """
277
  try:
278
- difficulties = (
279
- (TASK_NAME,)
280
- if TASK_NAME in {"easy", "medium", "hard"}
281
- else ("easy", "medium", "hard")
282
- )
283
- for difficulty in difficulties:
284
  await run_task(difficulty)
285
- print("", flush=True) # blank line separator between tasks
286
  except Exception as exc:
287
  print(f"[DEBUG] Main loop error: {exc}", flush=True)
288
 
 
275
  Otherwise run all three in sequence so all 3 tasks produce scores.
276
  """
277
  try:
278
+ # Always run all 3 tasks — validator counts 3 [END] lines
279
+ for difficulty in ("easy", "medium", "hard"):
 
 
 
 
280
  await run_task(difficulty)
281
+ print("", flush=True)
282
  except Exception as exc:
283
  print(f"[DEBUG] Main loop error: {exc}", flush=True)
284