Spaces:
Running
Running
Samrat Barai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -77,10 +77,15 @@ def swap_face(source_file, target_file, doFaceEnhancer):
|
|
77 |
return normalized_output_path
|
78 |
|
79 |
app = gr.Interface(
|
80 |
-
fn=swap_face,
|
|
|
|
|
|
|
|
|
|
|
81 |
inputs=[
|
82 |
-
gr.Image(),
|
83 |
-
gr.Image(),
|
84 |
gr.Checkbox(label="Face Enhancer?", info="Do face enhancement?")
|
85 |
],
|
86 |
outputs="image"
|
|
|
77 |
return normalized_output_path
|
78 |
|
79 |
app = gr.Interface(
|
80 |
+
fn=swap_face,
|
81 |
+
gr.Markdown(
|
82 |
+
"""
|
83 |
+
# Welcome to Roop!
|
84 |
+
Upload a source and a target image to start.
|
85 |
+
""")
|
86 |
inputs=[
|
87 |
+
gr.Image(str="Source Image:"),
|
88 |
+
gr.Image(str="Target Image:"),
|
89 |
gr.Checkbox(label="Face Enhancer?", info="Do face enhancement?")
|
90 |
],
|
91 |
outputs="image"
|