VeuReu commited on
Commit
72fe2c9
·
verified ·
1 Parent(s): 3a97581

Update preprocessing_router.py

Browse files
Files changed (1) hide show
  1. preprocessing_router.py +5 -4
preprocessing_router.py CHANGED
@@ -262,10 +262,11 @@ async def finalize_casting(
262
  print(emb)
263
  print(f" - {f}")
264
  print(f" - {f_path}")
265
- casting_json["face_col"].append({
266
- "nombre": c_name,
267
- "embedding": emb[0],
268
- })
 
269
 
270
  print("-" * 30)
271
  print("="*50 + "\n")
 
262
  print(emb)
263
  print(f" - {f}")
264
  print(f" - {f_path}")
265
+ if emb:
266
+ casting_json["face_col"].append({
267
+ "nombre": c_name,
268
+ "embedding": emb[0],
269
+ })
270
 
271
  print("-" * 30)
272
  print("="*50 + "\n")