Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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 = [
|