Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,15 @@ def swap_face(source_file, target_file,doFaceEnhancer):
|
|
| 74 |
|
| 75 |
|
| 76 |
app = gr.Interface(
|
| 77 |
-
fn=swap_face,
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
)
|
| 80 |
-
app.launch(
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
|
| 76 |
app = gr.Interface(
|
| 77 |
+
fn=swap_face,
|
| 78 |
+
inputs=[gr.Image(),
|
| 79 |
+
gr.Image(),
|
| 80 |
+
gr.Checkbox(label="face_enhancer?",
|
| 81 |
+
info="do face enhancer?")],
|
| 82 |
+
outputs="image",
|
| 83 |
+
article=article_text,
|
| 84 |
+
allow_flagging="never"
|
| 85 |
)
|
| 86 |
+
app.launch(
|
| 87 |
+
show_api=False
|
| 88 |
+
)
|