Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,16 +64,14 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
64 |
return output_path
|
65 |
|
66 |
|
67 |
-
html_section_1 = "<div><p>This model is running on CPU an might be slow.</p></div>"
|
68 |
-
|
69 |
app = gr.Blocks()
|
70 |
|
71 |
with app:
|
72 |
-
gr.HTML(html_section_1)
|
73 |
gr.Interface(
|
74 |
fn=swap_face,
|
75 |
inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="Enhance", info="Face Enhancer")],
|
76 |
-
outputs="image"
|
|
|
77 |
)
|
78 |
|
79 |
app.launch()
|
|
|
64 |
return output_path
|
65 |
|
66 |
|
|
|
|
|
67 |
app = gr.Blocks()
|
68 |
|
69 |
with app:
|
|
|
70 |
gr.Interface(
|
71 |
fn=swap_face,
|
72 |
inputs=[gr.Image(), gr.Image(), gr.Checkbox(label="Enhance", info="Face Enhancer")],
|
73 |
+
outputs="image",
|
74 |
+
description="This model is running on CPU and might be slow."
|
75 |
)
|
76 |
|
77 |
app.launch()
|