jbilcke-hf HF staff commited on
Commit
201ac66
1 Parent(s): 61690e3

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -270,7 +270,7 @@ class EndpointHandler:
270
 
271
  params = data.get("parameters", dict())
272
 
273
- if not input_image and not input_prompt:
274
  raise ValueError("Either prompt or image must be provided")
275
 
276
  if input_prompt:
 
270
 
271
  params = data.get("parameters", dict())
272
 
273
+ if not input_image and not input_prompt:
274
  raise ValueError("Either prompt or image must be provided")
275
 
276
  if input_prompt: