Spaces:
Runtime error
Runtime error
Update bot.py
Browse files
bot.py
CHANGED
|
@@ -1130,7 +1130,7 @@ async def process_parallel_chapters(interaction, msg, user, chapters_dict, tmp_d
|
|
| 1130 |
total_bubbles = 0
|
| 1131 |
failed_pages = 0
|
| 1132 |
# تقليل السعة لتفادي ضغط API (Load Balancing)
|
| 1133 |
-
semaphore = asyncio.Semaphore(
|
| 1134 |
|
| 1135 |
async def process_single_image(img_path):
|
| 1136 |
async with semaphore:
|
|
|
|
| 1130 |
total_bubbles = 0
|
| 1131 |
failed_pages = 0
|
| 1132 |
# تقليل السعة لتفادي ضغط API (Load Balancing)
|
| 1133 |
+
semaphore = asyncio.Semaphore(5)
|
| 1134 |
|
| 1135 |
async def process_single_image(img_path):
|
| 1136 |
async with semaphore:
|