ParisNeo commited on
Commit
57ba62f
·
1 Parent(s): a34ba46
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -288,15 +288,14 @@ class UI():
288
  else:
289
  return "Waiting"
290
 
291
- def record_from_files(self, images, progress=gr.Progress()):
292
  if self.face_name is None:
293
  self.embeddings_cloud=[]
294
  self.is_recording=False
295
  return "Please input a face name"
296
 
297
  if images is not None:
298
- progress(0, desc="Starting...")
299
- for entry in progress.tqdm(images):
300
  image = cv2.cvtColor(cv2.imread(entry["name"]), cv2.COLOR_BGR2RGB)
301
  if image is None:
302
  return None
 
288
  else:
289
  return "Waiting"
290
 
291
+ def record_from_files(self, images):
292
  if self.face_name is None:
293
  self.embeddings_cloud=[]
294
  self.is_recording=False
295
  return "Please input a face name"
296
 
297
  if images is not None:
298
+ for entry in images:
 
299
  image = cv2.cvtColor(cv2.imread(entry["name"]), cv2.COLOR_BGR2RGB)
300
  if image is None:
301
  return None