ohayonguy
commited on
Commit
·
3686e7e
1
Parent(s):
1483b57
removed annoying info
Browse files
app.py
CHANGED
@@ -101,11 +101,6 @@ def enhance_face(img, face_helper, has_aligned, num_flow_steps, scale=2):
|
|
101 |
face_helper.align_warp_face()
|
102 |
if len(face_helper.cropped_faces) == 0:
|
103 |
raise gr.Error("Could not identify any face in the image.")
|
104 |
-
if len(face_helper.cropped_faces) > 1:
|
105 |
-
gr.Info(f"Identified {len(face_helper.cropped_faces)} "
|
106 |
-
f"faces in the image. The algorithm will enhance the quality of each face.")
|
107 |
-
else:
|
108 |
-
gr.Info(f"Identified one face in the image.")
|
109 |
|
110 |
# face restoration
|
111 |
for i, cropped_face in tqdm(enumerate(face_helper.cropped_faces)):
|
|
|
101 |
face_helper.align_warp_face()
|
102 |
if len(face_helper.cropped_faces) == 0:
|
103 |
raise gr.Error("Could not identify any face in the image.")
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
# face restoration
|
106 |
for i, cropped_face in tqdm(enumerate(face_helper.cropped_faces)):
|