Spaces:
Runtime error
Runtime error
Moibe
commited on
Commit
•
c611def
1
Parent(s):
fc5bbf7
Fix image outputs to output
Browse files
app.py
CHANGED
@@ -52,6 +52,8 @@ def perform(input1, input2, input3):
|
|
52 |
print("El procesador es: ", procesador)
|
53 |
|
54 |
path_video = input2
|
|
|
|
|
55 |
|
56 |
if plataforma == "local":
|
57 |
#Para local.
|
@@ -188,7 +190,7 @@ def perform(input1, input2, input3):
|
|
188 |
|
189 |
#Así para imagenes
|
190 |
demo = gr.Interface(
|
191 |
-
fn=perform, inputs=[gr.Image(), gr.Image(), gr.CheckboxGroup(["face_swapper","face_enhancer"], label="Processor")], outputs=[gr.Image()
|
192 |
)
|
193 |
|
194 |
#Así para video y 3 outputs: Video, Galería y Archivo Zip.
|
|
|
52 |
print("El procesador es: ", procesador)
|
53 |
|
54 |
path_video = input2
|
55 |
+
print("Path_video es:", path_video)
|
56 |
+
time.sleep(5)
|
57 |
|
58 |
if plataforma == "local":
|
59 |
#Para local.
|
|
|
190 |
|
191 |
#Así para imagenes
|
192 |
demo = gr.Interface(
|
193 |
+
fn=perform, inputs=[gr.Image(), gr.Image(), gr.CheckboxGroup(["face_swapper","face_enhancer"], label="Processor")], outputs=[gr.Image()]
|
194 |
)
|
195 |
|
196 |
#Así para video y 3 outputs: Video, Galería y Archivo Zip.
|