dalinstone commited on
Commit
bb761ae
·
verified ·
1 Parent(s): 3948d96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -302,7 +302,7 @@ async def grade_papers_concurrently(
302
  total_files = len(file_paths)
303
 
304
  # Use a ThreadPoolExecutor to run synchronous tasks concurrently
305
- with ThreadPoolExecutor(max_workers=2) as executor:
306
  # Create a future for each file processing task
307
  loop = asyncio.get_event_loop()
308
  tasks = [
 
302
  total_files = len(file_paths)
303
 
304
  # Use a ThreadPoolExecutor to run synchronous tasks concurrently
305
+ with ThreadPoolExecutor(max_workers=1) as executor:
306
  # Create a future for each file processing task
307
  loop = asyncio.get_event_loop()
308
  tasks = [