Spaces:
Running
on
L40S
Running
on
L40S
Upload app_hg.py with huggingface_hub
Browse files
app_hg.py
CHANGED
@@ -464,24 +464,6 @@ with gr.Blocks() as demo:
|
|
464 |
outputs=[color, bake, max_faces, render]
|
465 |
)
|
466 |
|
467 |
-
color.change(
|
468 |
-
fn=lambda x:[
|
469 |
-
gr.update(value=(x=='face'), interactive=(x=='face'), visible=(x=='face')),
|
470 |
-
gr.update(value=(x=='face'), interactive=(x=='face'), visible=(x=='face'))
|
471 |
-
],
|
472 |
-
inputs=color,
|
473 |
-
outputs=[bake, render]
|
474 |
-
)
|
475 |
-
|
476 |
-
bake.change(
|
477 |
-
fn= lambda x:[
|
478 |
-
gr.update(visible=x), gr.update(visible=x), gr.update(visible=x), gr.update(visible=x),
|
479 |
-
gr.update(value=10000 if x else 120000, minimum=2000, maximum=60000 if x else 300000)
|
480 |
-
],
|
481 |
-
inputs=bake,
|
482 |
-
outputs=[front_baking, other_views, align_times,force_bake, max_faces]
|
483 |
-
)
|
484 |
-
|
485 |
gr.Markdown(CONST_NOTE)
|
486 |
|
487 |
###### Output region
|
|
|
464 |
outputs=[color, bake, max_faces, render]
|
465 |
)
|
466 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
467 |
gr.Markdown(CONST_NOTE)
|
468 |
|
469 |
###### Output region
|