Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -316,7 +316,18 @@ with gr.Blocks(css=css) as demo:
|
|
| 316 |
image_in = gr.Image(label="Upload Image", type="numpy", height=512)
|
| 317 |
run_btn = gr.Button("Reconstruct Face", variant="primary")
|
| 318 |
|
| 319 |
-
status = gr.Textbox(label="Status", lines=6,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
|
| 321 |
examples = gr.Examples(
|
| 322 |
examples=[
|
|
@@ -330,17 +341,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 330 |
cache_examples=True
|
| 331 |
)
|
| 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(
|
| 346 |
fn=generate_results_and_mesh,
|
|
|
|
| 316 |
image_in = gr.Image(label="Upload Image", type="numpy", height=512)
|
| 317 |
run_btn = gr.Button("Reconstruct Face", variant="primary")
|
| 318 |
|
| 319 |
+
status = gr.Textbox(label="Status", lines=6, interactive=True, value="Upload an image to start.")
|
| 320 |
+
|
| 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 |
|
| 332 |
examples = gr.Examples(
|
| 333 |
examples=[
|
|
|
|
| 341 |
cache_examples=True
|
| 342 |
)
|
| 343 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
|
| 345 |
run_btn.click(
|
| 346 |
fn=generate_results_and_mesh,
|