Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,9 +52,9 @@ def process_images(params):
|
|
| 52 |
# api = params.get("api", "")
|
| 53 |
# job_id = params.get("job_id", "")
|
| 54 |
|
| 55 |
-
if not image_urls
|
| 56 |
-
logging.error("Missing required parameters: 'image_urls'
|
| 57 |
-
return {"error": "Missing required parameters: 'image_urls'
|
| 58 |
|
| 59 |
try:
|
| 60 |
images = [Image.open(requests.get(url, stream=True).raw) for url in image_urls]
|
|
|
|
| 52 |
# api = params.get("api", "")
|
| 53 |
# job_id = params.get("job_id", "")
|
| 54 |
|
| 55 |
+
if not image_urls:
|
| 56 |
+
logging.error("Missing required parameters: 'image_urls'")
|
| 57 |
+
return {"error": "Missing required parameters: 'image_urls'"}
|
| 58 |
|
| 59 |
try:
|
| 60 |
images = [Image.open(requests.get(url, stream=True).raw) for url in image_urls]
|