Commit ·
e8ba64a
1
Parent(s): 8dae3a8
update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ if __name__ == "__main__":
|
|
| 103 |
title = "## Leffa: Learning Flow Fields in Attention for Controllable Person Image Generation"
|
| 104 |
description = "Leffa is a unified framework for controllable person image generation that enables precise manipulation of both appearance (i.e., virtual try-on) and pose (i.e., pose transfer)."
|
| 105 |
|
| 106 |
-
with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.red))
|
| 107 |
gr.Markdown(title)
|
| 108 |
gr.Markdown(description)
|
| 109 |
|
|
@@ -219,4 +219,4 @@ if __name__ == "__main__":
|
|
| 219 |
pose_transfer_gen_button.click(fn=leffa_predict_pt, inputs=[
|
| 220 |
pt_src_image, pt_ref_image], outputs=[pt_gen_image])
|
| 221 |
|
| 222 |
-
demo.launch()
|
|
|
|
| 103 |
title = "## Leffa: Learning Flow Fields in Attention for Controllable Person Image Generation"
|
| 104 |
description = "Leffa is a unified framework for controllable person image generation that enables precise manipulation of both appearance (i.e., virtual try-on) and pose (i.e., pose transfer)."
|
| 105 |
|
| 106 |
+
with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.red)) as demo:
|
| 107 |
gr.Markdown(title)
|
| 108 |
gr.Markdown(description)
|
| 109 |
|
|
|
|
| 219 |
pose_transfer_gen_button.click(fn=leffa_predict_pt, inputs=[
|
| 220 |
pt_src_image, pt_ref_image], outputs=[pt_gen_image])
|
| 221 |
|
| 222 |
+
demo.queue().launch(share=True, show_error=True)
|