janasumit2911 commited on
Commit
329c90f
·
verified ·
1 Parent(s): 1ea7bea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 or not api or not job_id:
56
- logging.error("Missing required parameters: 'image_urls', 'api', or 'job_id'")
57
- return {"error": "Missing required parameters: 'image_urls', 'api', or 'job_id'"}
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]