Spaces:
Running
Running
VikramSingh178
commited on
Commit
•
c58035a
1
Parent(s):
f71c521
Update MAX_QUEUE_SIZE to 64 in sdxl_text_to_image.py
Browse filesFormer-commit-id: 83d1e2b66736c53606549dccb4cc9238c1344411
product_diffusion_api/routers/sdxl_text_to_image.py
CHANGED
@@ -119,7 +119,7 @@ async def sdxl_v0_lora_inference_batch(data: BatchInputFormat):
|
|
119 |
Raises:
|
120 |
HTTPException: If the number of requests exceeds the maximum queue size.
|
121 |
"""
|
122 |
-
MAX_QUEUE_SIZE =
|
123 |
|
124 |
if len(data.batch_input) > MAX_QUEUE_SIZE:
|
125 |
raise HTTPException(status_code=400, detail=f"Number of requests exceeds maximum queue size ({MAX_QUEUE_SIZE})")
|
|
|
119 |
Raises:
|
120 |
HTTPException: If the number of requests exceeds the maximum queue size.
|
121 |
"""
|
122 |
+
MAX_QUEUE_SIZE = 64
|
123 |
|
124 |
if len(data.batch_input) > MAX_QUEUE_SIZE:
|
125 |
raise HTTPException(status_code=400, detail=f"Number of requests exceeds maximum queue size ({MAX_QUEUE_SIZE})")
|
scripts/s3_manager.py
ADDED
File without changes
|