Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,7 +223,7 @@ def unified_image_generator(prompt: str, images: Optional[List[str]], previous_v
|
|
| 223 |
raise gr.Error("Could not identify user.")
|
| 224 |
|
| 225 |
if not check_and_update_usage(username):
|
| 226 |
-
raise gr.Error("This demo is made for interactive generations, not automated workflows. You have generated
|
| 227 |
|
| 228 |
try:
|
| 229 |
contents = [Image.open(image_path[0]) for image_path in images] if images else []
|
|
|
|
| 223 |
raise gr.Error("Could not identify user.")
|
| 224 |
|
| 225 |
if not check_and_update_usage(username):
|
| 226 |
+
raise gr.Error(f"This demo is made for interactive generations, not automated workflows. You have generated {DAILY_LIMIT} images today, come back tomorrow for more.")
|
| 227 |
|
| 228 |
try:
|
| 229 |
contents = [Image.open(image_path[0]) for image_path in images] if images else []
|