Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- app_text_to_3d.py +2 -4
app_text_to_3d.py
CHANGED
|
@@ -37,9 +37,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
| 37 |
show_label=False,
|
| 38 |
max_lines=1,
|
| 39 |
placeholder="Enter your prompt",
|
| 40 |
-
|
| 41 |
)
|
| 42 |
-
run_button = gr.Button("Run", scale=0)
|
| 43 |
result = gr.Model3D(label="Result", show_label=False)
|
| 44 |
with gr.Accordion("Advanced options", open=False):
|
| 45 |
seed = gr.Slider(
|
|
@@ -74,8 +73,7 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
| 74 |
cache_mode="lazy",
|
| 75 |
)
|
| 76 |
|
| 77 |
-
|
| 78 |
-
triggers=[prompt.submit, run_button.click],
|
| 79 |
fn=randomize_seed_fn,
|
| 80 |
inputs=[seed, randomize_seed],
|
| 81 |
outputs=seed,
|
|
|
|
| 37 |
show_label=False,
|
| 38 |
max_lines=1,
|
| 39 |
placeholder="Enter your prompt",
|
| 40 |
+
submit_btn=True,
|
| 41 |
)
|
|
|
|
| 42 |
result = gr.Model3D(label="Result", show_label=False)
|
| 43 |
with gr.Accordion("Advanced options", open=False):
|
| 44 |
seed = gr.Slider(
|
|
|
|
| 73 |
cache_mode="lazy",
|
| 74 |
)
|
| 75 |
|
| 76 |
+
prompt.submit(
|
|
|
|
| 77 |
fn=randomize_seed_fn,
|
| 78 |
inputs=[seed, randomize_seed],
|
| 79 |
outputs=seed,
|