Spaces:
Sleeping
Sleeping
No face at source fix
Browse files- funciones.py +5 -5
- orange.png +0 -0
funciones.py
CHANGED
@@ -99,12 +99,10 @@ def mass(input1, input2):
|
|
99 |
if "No face in source path detected" in output:
|
100 |
#Hacer algo si se encuentra el texto
|
101 |
print("No se detect贸 ninguna cara en la ruta de origen.")
|
102 |
-
|
103 |
-
|
104 |
else:
|
105 |
print("Si se detecto un rostro...")
|
106 |
-
|
107 |
-
|
108 |
|
109 |
|
110 |
print("脡ste es el momento en el que se creo result, revisar...")
|
@@ -121,7 +119,7 @@ def mass(input1, input2):
|
|
121 |
|
122 |
if modo == "video":
|
123 |
#Para video
|
124 |
-
path = pathlib.Path(
|
125 |
path_abs = os.path.abspath(path)
|
126 |
print("脡ste es el path para video:", path)
|
127 |
print("Y su ruta absoluta es: ", path_abs)
|
@@ -130,5 +128,7 @@ def mass(input1, input2):
|
|
130 |
#Para imagen
|
131 |
path = pathlib.Path(result_path)
|
132 |
print("脡ste es el path para imagen:", path)
|
|
|
133 |
return path
|
|
|
134 |
print("Listo! Gracias!")
|
|
|
99 |
if "No face in source path detected" in output:
|
100 |
#Hacer algo si se encuentra el texto
|
101 |
print("No se detect贸 ninguna cara en la ruta de origen.")
|
102 |
+
|
|
|
103 |
else:
|
104 |
print("Si se detecto un rostro...")
|
105 |
+
|
|
|
106 |
|
107 |
|
108 |
print("脡ste es el momento en el que se creo result, revisar...")
|
|
|
119 |
|
120 |
if modo == "video":
|
121 |
#Para video
|
122 |
+
path = pathlib.Path(result_path)
|
123 |
path_abs = os.path.abspath(path)
|
124 |
print("脡ste es el path para video:", path)
|
125 |
print("Y su ruta absoluta es: ", path_abs)
|
|
|
128 |
#Para imagen
|
129 |
path = pathlib.Path(result_path)
|
130 |
print("脡ste es el path para imagen:", path)
|
131 |
+
print("Y su ruta absoluta es: ", path_abs)
|
132 |
return path
|
133 |
+
|
134 |
print("Listo! Gracias!")
|
orange.png
ADDED
![]() |