Fred808 commited on
Commit
e45e0f4
·
verified ·
1 Parent(s): 82596a2

Update vision_analyzer.py

Browse files
Files changed (1) hide show
  1. vision_analyzer.py +2 -2
vision_analyzer.py CHANGED
@@ -357,7 +357,7 @@ def main_processing_loop(start_index: int = 0):
357
  try:
358
  # Load state
359
  processed_rars = load_json_state(PROCESS_STATE_FILE, {"processed_rars": []})["processed_rars"]
360
- download_state = load_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": 5})
361
 
362
  # Use start_index if provided, otherwise use the saved state
363
  next_index = start_index if start_index > 0 else download_state["next_download_index"]
@@ -422,7 +422,7 @@ def main_processing_loop(start_index: int = 0):
422
  processing_status["failed_files"] += 1
423
 
424
  # Update download state for next run
425
- next_index += 0
426
  save_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": next_index})
427
 
428
  # Status update
 
357
  try:
358
  # Load state
359
  processed_rars = load_json_state(PROCESS_STATE_FILE, {"processed_rars": []})["processed_rars"]
360
+ download_state = load_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": 0})
361
 
362
  # Use start_index if provided, otherwise use the saved state
363
  next_index = start_index if start_index > 0 else download_state["next_download_index"]
 
422
  processing_status["failed_files"] += 1
423
 
424
  # Update download state for next run
425
+ next_index += 1
426
  save_json_state(DOWNLOAD_STATE_FILE, {"next_download_index": next_index})
427
 
428
  # Status update