Commit
•
201ac66
1
Parent(s):
61690e3
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -270,7 +270,7 @@ class EndpointHandler:
|
|
270 |
|
271 |
params = data.get("parameters", dict())
|
272 |
|
273 |
-
|
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:
|