Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -254,10 +254,12 @@ css = """
|
|
| 254 |
|
| 255 |
# Build Gradio UI
|
| 256 |
with gr.Blocks(css=css) as demo:
|
| 257 |
-
gr.Markdown("## Pixel3dmm [Image Mode]")
|
| 258 |
-
gr.Markdown("Versatile Screen-Space Priors for Single-Image 3D Face Reconstruction.")
|
| 259 |
gr.HTML(
|
| 260 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
<br>
|
| 262 |
<div style="display: flex; justify-content: center; align-items: center; text-align: center;">
|
| 263 |
<a href="https://github.com/SimonGiebenhain/pixel3dmm">
|
|
@@ -272,6 +274,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 272 |
with gr.Row():
|
| 273 |
with gr.Column():
|
| 274 |
image_in = gr.Image(label="Upload Image", type="numpy", height=512)
|
|
|
|
|
|
|
| 275 |
status = gr.Textbox(label="Status", lines=6, interactive=True, value="Upload an image to start.")
|
| 276 |
|
| 277 |
with gr.Column():
|
|
@@ -285,14 +289,13 @@ with gr.Blocks(css=css) as demo:
|
|
| 285 |
|
| 286 |
examples = gr.Examples(
|
| 287 |
examples=["example_images/jim_carrey.png", "example_images/margaret_qualley.png"],
|
| 288 |
-
inputs=image_in,
|
| 289 |
outputs=[], # outputs are specified via the callback
|
| 290 |
fn=run_pipeline,
|
| 291 |
cache_examples=True # cache results of examples for faster loading
|
| 292 |
)
|
| 293 |
|
| 294 |
-
|
| 295 |
-
|
| 296 |
run_btn.click(
|
| 297 |
fn=run_pipeline,
|
| 298 |
inputs=[image_in],
|
|
|
|
| 254 |
|
| 255 |
# Build Gradio UI
|
| 256 |
with gr.Blocks(css=css) as demo:
|
|
|
|
|
|
|
| 257 |
gr.HTML(
|
| 258 |
"""
|
| 259 |
+
<div style="text-align: center;">
|
| 260 |
+
<h1>Pixel3dmm [Image Mode]</h1>
|
| 261 |
+
<p style="font-size:16px;">Versatile Screen-Space Priors for Single-Image 3D Face Reconstruction.</p>
|
| 262 |
+
</div>
|
| 263 |
<br>
|
| 264 |
<div style="display: flex; justify-content: center; align-items: center; text-align: center;">
|
| 265 |
<a href="https://github.com/SimonGiebenhain/pixel3dmm">
|
|
|
|
| 274 |
with gr.Row():
|
| 275 |
with gr.Column():
|
| 276 |
image_in = gr.Image(label="Upload Image", type="numpy", height=512)
|
| 277 |
+
run_btn = gr.Button("Reconstruct Face")
|
| 278 |
+
|
| 279 |
status = gr.Textbox(label="Status", lines=6, interactive=True, value="Upload an image to start.")
|
| 280 |
|
| 281 |
with gr.Column():
|
|
|
|
| 289 |
|
| 290 |
examples = gr.Examples(
|
| 291 |
examples=["example_images/jim_carrey.png", "example_images/margaret_qualley.png"],
|
| 292 |
+
inputs=[image_in],
|
| 293 |
outputs=[], # outputs are specified via the callback
|
| 294 |
fn=run_pipeline,
|
| 295 |
cache_examples=True # cache results of examples for faster loading
|
| 296 |
)
|
| 297 |
|
| 298 |
+
|
|
|
|
| 299 |
run_btn.click(
|
| 300 |
fn=run_pipeline,
|
| 301 |
inputs=[image_in],
|