Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -317,17 +317,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 317 |
image_in = gr.Image(label="Upload Image", type="numpy", height=512)
|
| 318 |
run_btn = gr.Button("Reconstruct Face", variant="primary")
|
| 319 |
|
| 320 |
-
status = gr.Textbox(label="Status", lines=6, interactive=True, value="Upload an image to start.")
|
| 321 |
-
|
| 322 |
-
with gr.Column():
|
| 323 |
-
mesh_file = gr.Model3D(label="3D Model Preview", height=512)
|
| 324 |
-
|
| 325 |
-
with gr.Row():
|
| 326 |
-
crop_img = gr.Image(label="Preprocessed", height=128)
|
| 327 |
-
normals_img = gr.Image(label="Normals", height=128)
|
| 328 |
-
uv_img = gr.Image(label="UV Map", height=128)
|
| 329 |
-
track_img = gr.Image(label="Tracking", height=128)
|
| 330 |
-
|
| 331 |
examples = gr.Examples(
|
| 332 |
examples=[
|
| 333 |
["example_images/jennifer_lawrence.png"],
|
|
@@ -339,6 +328,18 @@ with gr.Blocks(css=css) as demo:
|
|
| 339 |
fn=generate_results_and_mesh,
|
| 340 |
cache_examples=True
|
| 341 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
|
| 343 |
|
| 344 |
run_btn.click(
|
|
|
|
| 317 |
image_in = gr.Image(label="Upload Image", type="numpy", height=512)
|
| 318 |
run_btn = gr.Button("Reconstruct Face", variant="primary")
|
| 319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
examples = gr.Examples(
|
| 321 |
examples=[
|
| 322 |
["example_images/jennifer_lawrence.png"],
|
|
|
|
| 328 |
fn=generate_results_and_mesh,
|
| 329 |
cache_examples=True
|
| 330 |
)
|
| 331 |
+
status = gr.Textbox(label="Status", lines=6, interactive=True, value="Upload an image to start.")
|
| 332 |
+
|
| 333 |
+
with gr.Column():
|
| 334 |
+
mesh_file = gr.Model3D(label="3D Model Preview", height=512)
|
| 335 |
+
|
| 336 |
+
with gr.Row():
|
| 337 |
+
crop_img = gr.Image(label="Preprocessed", height=128)
|
| 338 |
+
normals_img = gr.Image(label="Normals", height=128)
|
| 339 |
+
uv_img = gr.Image(label="UV Map", height=128)
|
| 340 |
+
track_img = gr.Image(label="Tracking", height=128)
|
| 341 |
+
|
| 342 |
+
|
| 343 |
|
| 344 |
|
| 345 |
run_btn.click(
|