Spaces:
Running
Running
Commit
·
d2b8be8
1
Parent(s):
9c1cc82
add : named endpoints
Browse files
app.py
CHANGED
|
@@ -510,9 +510,13 @@ css = """
|
|
| 510 |
footer{display:none !important}
|
| 511 |
"""
|
| 512 |
|
|
|
|
|
|
|
| 513 |
with gr.Blocks(css=css) as interface:
|
| 514 |
gr.Markdown("# 🗿 API Swap Face")
|
| 515 |
gr.Markdown("### Face swap app based on insightface inswapper.")
|
|
|
|
|
|
|
| 516 |
with gr.Row():
|
| 517 |
with gr.Row():
|
| 518 |
with gr.Column(scale=0.4):
|
|
|
|
| 510 |
footer{display:none !important}
|
| 511 |
"""
|
| 512 |
|
| 513 |
+
add_endpoint = gr.routes.NamedEndpoint(fn=process, inputs=[gr.Image(), gr.Video(), gr.Text(), gr.Text()], outputs=[gr.Text()], name="add")
|
| 514 |
+
|
| 515 |
with gr.Blocks(css=css) as interface:
|
| 516 |
gr.Markdown("# 🗿 API Swap Face")
|
| 517 |
gr.Markdown("### Face swap app based on insightface inswapper.")
|
| 518 |
+
gr.load(add_endpoint)
|
| 519 |
+
|
| 520 |
with gr.Row():
|
| 521 |
with gr.Row():
|
| 522 |
with gr.Column(scale=0.4):
|