Spaces:
Runtime error
Runtime error
Moibe
commited on
Commit
•
8f8baa8
1
Parent(s):
bd67bba
Switch interface to pic
Browse files
app.py
CHANGED
@@ -189,13 +189,13 @@ def perform(input1, input2, input3):
|
|
189 |
print("Listo! Gracias!")
|
190 |
|
191 |
#Así para imagenes
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
|
196 |
#Así para video y 3 outputs: Video, Galería y Archivo Zip.
|
197 |
# demo = gr.Interface(
|
198 |
-
# fn=
|
199 |
# )
|
200 |
|
201 |
#Así para 2 outputs, video y zip.
|
@@ -207,4 +207,5 @@ def perform(input1, input2, input3):
|
|
207 |
demo = gr.Interface(
|
208 |
fn=perform, inputs=[gr.Image(), gr.Video(), gr.CheckboxGroup(["face_swapper","face_enhancer"], label="Processor")], outputs=[gr.Video()]
|
209 |
)
|
|
|
210 |
demo.launch()
|
|
|
189 |
print("Listo! Gracias!")
|
190 |
|
191 |
#Así para imagenes
|
192 |
+
demo = gr.Interface(
|
193 |
+
fn=perform, inputs=[gr.Image(), gr.Image()], outputs=[gr.Image(), gr.Image()]
|
194 |
+
)
|
195 |
|
196 |
#Así para video y 3 outputs: Video, Galería y Archivo Zip.
|
197 |
# demo = gr.Interface(
|
198 |
+
# fn=perform, inputs=[gr.Image(), gr.Video()], outputs=[gr.Video(), gr.Gallery(), gr.File()]
|
199 |
# )
|
200 |
|
201 |
#Así para 2 outputs, video y zip.
|
|
|
207 |
demo = gr.Interface(
|
208 |
fn=perform, inputs=[gr.Image(), gr.Video(), gr.CheckboxGroup(["face_swapper","face_enhancer"], label="Processor")], outputs=[gr.Video()]
|
209 |
)
|
210 |
+
|
211 |
demo.launch()
|