Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ async def generate_image():
|
|
75 |
|
76 |
image_urls = []
|
77 |
|
78 |
-
for image_count in range(
|
79 |
# Retry mechanism with error handling
|
80 |
for attempt in range(3): # Try up to 3 times per image
|
81 |
image_bytes = await retry_query(payload)
|
|
|
75 |
|
76 |
image_urls = []
|
77 |
|
78 |
+
for image_count in range(3): # Generate 3 images
|
79 |
# Retry mechanism with error handling
|
80 |
for attempt in range(3): # Try up to 3 times per image
|
81 |
image_bytes = await retry_query(payload)
|