Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- app_image_to_3d.py +6 -8
- app_text_to_3d.py +6 -7
app_image_to_3d.py
CHANGED
@@ -67,13 +67,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
67 |
cache_examples=CACHE_EXAMPLES,
|
68 |
)
|
69 |
|
70 |
-
inputs = [
|
71 |
-
image,
|
72 |
-
seed,
|
73 |
-
guidance_scale,
|
74 |
-
num_inference_steps,
|
75 |
-
]
|
76 |
-
|
77 |
run_button.click(
|
78 |
fn=randomize_seed_fn,
|
79 |
inputs=[seed, randomize_seed],
|
@@ -82,7 +75,12 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
82 |
api_name=False,
|
83 |
).then(
|
84 |
fn=run,
|
85 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
|
86 |
outputs=result,
|
87 |
api_name="image-to-3d",
|
88 |
)
|
|
|
67 |
cache_examples=CACHE_EXAMPLES,
|
68 |
)
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
run_button.click(
|
71 |
fn=randomize_seed_fn,
|
72 |
inputs=[seed, randomize_seed],
|
|
|
75 |
api_name=False,
|
76 |
).then(
|
77 |
fn=run,
|
78 |
+
inputs=[
|
79 |
+
image,
|
80 |
+
seed,
|
81 |
+
guidance_scale,
|
82 |
+
num_inference_steps,
|
83 |
+
],
|
84 |
outputs=result,
|
85 |
api_name="image-to-3d",
|
86 |
)
|
app_text_to_3d.py
CHANGED
@@ -73,12 +73,6 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
73 |
cache_examples=CACHE_EXAMPLES,
|
74 |
)
|
75 |
|
76 |
-
inputs = [
|
77 |
-
prompt,
|
78 |
-
seed,
|
79 |
-
guidance_scale,
|
80 |
-
num_inference_steps,
|
81 |
-
]
|
82 |
gr.on(
|
83 |
triggers=[prompt.submit, run_button.click],
|
84 |
fn=randomize_seed_fn,
|
@@ -88,7 +82,12 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
88 |
api_name=False,
|
89 |
).then(
|
90 |
fn=run,
|
91 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
|
92 |
outputs=result,
|
93 |
api_name="text-to-3d",
|
94 |
)
|
|
|
73 |
cache_examples=CACHE_EXAMPLES,
|
74 |
)
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
gr.on(
|
77 |
triggers=[prompt.submit, run_button.click],
|
78 |
fn=randomize_seed_fn,
|
|
|
82 |
api_name=False,
|
83 |
).then(
|
84 |
fn=run,
|
85 |
+
inputs=[
|
86 |
+
prompt,
|
87 |
+
seed,
|
88 |
+
guidance_scale,
|
89 |
+
num_inference_steps,
|
90 |
+
],
|
91 |
outputs=result,
|
92 |
api_name="text-to-3d",
|
93 |
)
|