R.C.M. commited on
Commit
3b45c39
·
1 Parent(s): d9873c1

Increase attached images limit to 4 images

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -272,8 +272,8 @@ async def generate_image(
272
  if image_urls:
273
  if not isinstance(image_urls, list):
274
  raise HTTPException(400, "image_urls must be a list")
275
- if len(image_urls) > 2:
276
- raise HTTPException(400, "Maximum of two image URLs allowed")
277
  has_input_image = True
278
 
279
  if has_input_image:
 
272
  if image_urls:
273
  if not isinstance(image_urls, list):
274
  raise HTTPException(400, "image_urls must be a list")
275
+ if len(image_urls) > 4:
276
+ raise HTTPException(400, "Maximum of four image URLs allowed")
277
  has_input_image = True
278
 
279
  if has_input_image: