Not-Adam commited on
Commit
5cd9cad
·
verified ·
1 Parent(s): 34e6e0e

Returning empty dic if fail (#5)

Browse files

- Returning empty dic if fail (7d4ad9b2a6836a640462202ea8cc174e666637d1)

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -260,7 +260,7 @@ def get_face_embeddings(image_urls):
260
  results[str(index)] = face_encodings[0].tolist()
261
  except Exception as e:
262
  # If any error occurs during the download or processing, store the error message
263
- results[str(index)] = f"Error processing image: {str(e)}"
264
 
265
  return results
266
 
 
260
  results[str(index)] = face_encodings[0].tolist()
261
  except Exception as e:
262
  # If any error occurs during the download or processing, store the error message
263
+ print(f"Error processing image: {str(e)}")
264
 
265
  return results
266