Spaces:
Running
on
Zero
Running
on
Zero
Add header and footer
Browse files
app.py
CHANGED
@@ -71,6 +71,28 @@ def infer(
|
|
71 |
|
72 |
return images
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
css = """
|
75 |
#col-container {
|
76 |
margin: 0 auto;
|
@@ -79,6 +101,9 @@ css = """
|
|
79 |
"""
|
80 |
|
81 |
with gr.Blocks(css=css) as demo:
|
|
|
|
|
|
|
82 |
with gr.Column(elem_id="col-container"):
|
83 |
gr.Markdown(" # ID-Booth Demo")
|
84 |
|
@@ -183,5 +208,7 @@ with gr.Blocks(css=css) as demo:
|
|
183 |
outputs=[result],
|
184 |
)
|
185 |
|
|
|
|
|
186 |
if __name__ == "__main__":
|
187 |
demo.launch()
|
|
|
71 |
|
72 |
return images
|
73 |
|
74 |
+
|
75 |
+
### Description
|
76 |
+
header = r"""
|
77 |
+
<h1>ID-Booth: Identity-consistent Face Generation with Diffusion Models</h1>
|
78 |
+
<b>Official Gradio demo</b> for <a href='https://dariant.github.io/publications/ID-Booth' target='_blank'><b>ID-Booth: Identity-consistent Face Generation with Diffusion Models</b></a>
|
79 |
+
"""
|
80 |
+
|
81 |
+
footer = r"""
|
82 |
+
---
|
83 |
+
📝 **Citation**
|
84 |
+
<br>
|
85 |
+
If you find ID-Booth helpful, please consider citing our paper:
|
86 |
+
```bibtex
|
87 |
+
@article{tomasevic2025IDBooth,
|
88 |
+
title={{ID-Booth}: Identity-consistent Face Generation with Diffusion Models},
|
89 |
+
author={Toma{\v{s}}evi{\'c}, Darian and Boutros, Fadi and Lin, Chenhao and Damer, Naser and {\v{S}}truc, Vitomir and Peer, Peter},
|
90 |
+
journal={arXiv preprint arXiv:2504.07392},
|
91 |
+
year={2025}
|
92 |
+
}
|
93 |
+
```
|
94 |
+
"""
|
95 |
+
|
96 |
css = """
|
97 |
#col-container {
|
98 |
margin: 0 auto;
|
|
|
101 |
"""
|
102 |
|
103 |
with gr.Blocks(css=css) as demo:
|
104 |
+
|
105 |
+
# description
|
106 |
+
gr.Markdown(header)
|
107 |
with gr.Column(elem_id="col-container"):
|
108 |
gr.Markdown(" # ID-Booth Demo")
|
109 |
|
|
|
208 |
outputs=[result],
|
209 |
)
|
210 |
|
211 |
+
gr.Markdown(footer)
|
212 |
+
|
213 |
if __name__ == "__main__":
|
214 |
demo.launch()
|