Spaces:
Build error
Build error
Rutas usage
Browse files- app.py +2 -2
- funciones.py +2 -1
- no-result.png → no-credits.png +0 -0
- no-source-face.png +0 -0
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def perform(input1, input2):
|
|
| 22 |
autorizacion = sulkuPypi.authorize(gr.State.tokens, 'picswap')
|
| 23 |
print("La autorización es: ", autorizacion)
|
| 24 |
|
| 25 |
-
info_window = ""
|
| 26 |
|
| 27 |
if autorizacion is True:
|
| 28 |
|
|
@@ -30,7 +30,7 @@ def perform(input1, input2):
|
|
| 30 |
|
| 31 |
else:
|
| 32 |
info_window = "Out of credits..."
|
| 33 |
-
path = 'no-
|
| 34 |
return path, info_window, html_credits, btn_buy
|
| 35 |
|
| 36 |
print(f"El path final fue {path}, si es no-result, no debites y controla la info window.")
|
|
|
|
| 22 |
autorizacion = sulkuPypi.authorize(gr.State.tokens, 'picswap')
|
| 23 |
print("La autorización es: ", autorizacion)
|
| 24 |
|
| 25 |
+
#info_window = ""
|
| 26 |
|
| 27 |
if autorizacion is True:
|
| 28 |
|
|
|
|
| 30 |
|
| 31 |
else:
|
| 32 |
info_window = "Out of credits..."
|
| 33 |
+
path = 'no-credits.png'
|
| 34 |
return path, info_window, html_credits, btn_buy
|
| 35 |
|
| 36 |
print(f"El path final fue {path}, si es no-result, no debites y controla la info window.")
|
funciones.py
CHANGED
|
@@ -97,6 +97,7 @@ def mass(input1, input2):
|
|
| 97 |
print("Output (resultado de la ejecución del código):")
|
| 98 |
print(output)
|
| 99 |
print("Y el tipo del output es: ", type(output))
|
|
|
|
| 100 |
|
| 101 |
print("Terminó la impresión del output...")
|
| 102 |
|
|
@@ -104,7 +105,7 @@ def mass(input1, input2):
|
|
| 104 |
#Si no se detecta un rostro, pondremos un placeholder, ésto evita que se despliegue el último result obtenido antes...
|
| 105 |
#...de la operación fallida.
|
| 106 |
print("No se detectó ninguna cara en la ruta de origen.")
|
| 107 |
-
|
| 108 |
|
| 109 |
else:
|
| 110 |
print("Si se detecto un rostro...")
|
|
|
|
| 97 |
print("Output (resultado de la ejecución del código):")
|
| 98 |
print(output)
|
| 99 |
print("Y el tipo del output es: ", type(output))
|
| 100 |
+
time.sleep(18)
|
| 101 |
|
| 102 |
print("Terminó la impresión del output...")
|
| 103 |
|
|
|
|
| 105 |
#Si no se detecta un rostro, pondremos un placeholder, ésto evita que se despliegue el último result obtenido antes...
|
| 106 |
#...de la operación fallida.
|
| 107 |
print("No se detectó ninguna cara en la ruta de origen.")
|
| 108 |
+
result_path = "no-source-face.png"
|
| 109 |
|
| 110 |
else:
|
| 111 |
print("Si se detecto un rostro...")
|
no-result.png → no-credits.png
RENAMED
|
File without changes
|
no-source-face.png
ADDED
|