Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,10 @@ def process_images(params):
|
|
60 |
return {"error":f"Invalid JSON input: {e.msg} at line {e.lineno} column {e.colno}"}
|
61 |
|
62 |
image_urls = params.get("urls", [])
|
63 |
-
|
|
|
|
|
|
|
64 |
# api = params.get("api", "")
|
65 |
# job_id = params.get("job_id", "")
|
66 |
|
|
|
60 |
return {"error":f"Invalid JSON input: {e.msg} at line {e.lineno} column {e.colno}"}
|
61 |
|
62 |
image_urls = params.get("urls", [])
|
63 |
+
if not params.get("normalfileID",[]):
|
64 |
+
file_id = [None]*len(image_urls)
|
65 |
+
else:
|
66 |
+
file_id = params.get("normalfileID",[])
|
67 |
# api = params.get("api", "")
|
68 |
# job_id = params.get("job_id", "")
|
69 |
|