multimodalart HF Staff commited on
Commit
004a13d
·
verified ·
1 Parent(s): 45da145

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 80 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 []
 
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 []