Spaces:
Running
Running
fix_render
#1
by
anjith2006
- opened
app.py
CHANGED
|
@@ -150,9 +150,10 @@ a:hover {{color:{PRIMARY_DARK}}}
|
|
| 150 |
margin-top:2rem;
|
| 151 |
}}
|
| 152 |
#cite-wrapper code {{
|
| 153 |
-
font-family:SFMono-Regular,Consolas,monospace;
|
| 154 |
-
font-size
|
| 155 |
-
white-space:pre-wrap;
|
|
|
|
| 156 |
}}
|
| 157 |
#copy-btn {{
|
| 158 |
position:absolute;
|
|
@@ -241,12 +242,12 @@ CITATION_HTML = """
|
|
| 241 |
navigator.clipboard.writeText(document.getElementById('bibtex').innerText)
|
| 242 |
.then(()=>{this.textContent='✔︎';setTimeout(()=>this.textContent='Copy',1500);});
|
| 243 |
">Copy</button>
|
| 244 |
-
<code id="bibtex">@article{
|
| 245 |
title = {{EdgeFace: Efficient Face Recognition Model for Edge Devices}},
|
| 246 |
-
author = {{George, A. and Ecabert, C. and
|
| 247 |
journal= {{IEEE Trans. Biometrics, Behavior, & Identity Science}},
|
| 248 |
year = {{2024}}
|
| 249 |
-
}
|
| 250 |
</div>
|
| 251 |
"""
|
| 252 |
|
|
@@ -264,10 +265,15 @@ with gr.Blocks(css=CSS, title="EdgeFace Demo") as demo:
|
|
| 264 |
label="Image B", object_fit="contain")
|
| 265 |
|
| 266 |
with gr.Row():
|
| 267 |
-
img_a = gr.Image(type="numpy", height=300, label="Image A",
|
| 268 |
-
|
| 269 |
-
img_b = gr.Image(type="numpy", height=300, label="Image B",
|
| 270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
|
| 272 |
def _fill(evt: gr.SelectData):
|
| 273 |
return _as_rgb(PRELOADED[evt.index]) if evt.index is not None else None
|
|
|
|
| 150 |
margin-top:2rem;
|
| 151 |
}}
|
| 152 |
#cite-wrapper code {{
|
| 153 |
+
font-family: SFMono-Regular, Consolas, monospace;
|
| 154 |
+
font-size: .84rem;
|
| 155 |
+
white-space: pre-wrap;
|
| 156 |
+
color: #0F172A;
|
| 157 |
}}
|
| 158 |
#copy-btn {{
|
| 159 |
position:absolute;
|
|
|
|
| 242 |
navigator.clipboard.writeText(document.getElementById('bibtex').innerText)
|
| 243 |
.then(()=>{this.textContent='✔︎';setTimeout(()=>this.textContent='Copy',1500);});
|
| 244 |
">Copy</button>
|
| 245 |
+
<code id="bibtex">@article{edgeface,
|
| 246 |
title = {{EdgeFace: Efficient Face Recognition Model for Edge Devices}},
|
| 247 |
+
author = {{George, A. and Ecabert, C. and Otroshi, H. and Kotwal, K. and Marcel, S.}},
|
| 248 |
journal= {{IEEE Trans. Biometrics, Behavior, & Identity Science}},
|
| 249 |
year = {{2024}}
|
| 250 |
+
}</code>
|
| 251 |
</div>
|
| 252 |
"""
|
| 253 |
|
|
|
|
| 265 |
label="Image B", object_fit="contain")
|
| 266 |
|
| 267 |
with gr.Row():
|
| 268 |
+
# img_a = gr.Image(type="numpy", height=300, label="Image A",
|
| 269 |
+
# elem_classes="preview")
|
| 270 |
+
# img_b = gr.Image(type="numpy", height=300, label="Image B",
|
| 271 |
+
# elem_classes="preview")
|
| 272 |
+
|
| 273 |
+
img_a = gr.Image(type="numpy", height=300, label="Image A (click or drag-drop)",
|
| 274 |
+
interactive=True, elem_classes="preview")
|
| 275 |
+
img_b = gr.Image(type="numpy", height=300, label="Image B (click or drag-drop)",
|
| 276 |
+
interactive=True, elem_classes="preview")
|
| 277 |
|
| 278 |
def _fill(evt: gr.SelectData):
|
| 279 |
return _as_rgb(PRELOADED[evt.index]) if evt.index is not None else None
|