Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files- README.md +2 -2
- app_text_to_3d.py +2 -13
- requirements.txt +3 -2
README.md
CHANGED
@@ -4,8 +4,8 @@ emoji: 🧢
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
-
python_version: 3.10.
|
9 |
app_file: app.py
|
10 |
pinned: false
|
11 |
license: mit
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.47.1
|
8 |
+
python_version: 3.10.13
|
9 |
app_file: app.py
|
10 |
pinned: false
|
11 |
license: mit
|
app_text_to_3d.py
CHANGED
@@ -79,19 +79,8 @@ def create_demo(model: Model) -> gr.Blocks:
|
|
79 |
guidance_scale,
|
80 |
num_inference_steps,
|
81 |
]
|
82 |
-
|
83 |
-
|
84 |
-
inputs=[seed, randomize_seed],
|
85 |
-
outputs=seed,
|
86 |
-
queue=False,
|
87 |
-
api_name=False,
|
88 |
-
).then(
|
89 |
-
fn=run,
|
90 |
-
inputs=inputs,
|
91 |
-
outputs=result,
|
92 |
-
api_name=False,
|
93 |
-
)
|
94 |
-
run_button.click(
|
95 |
fn=randomize_seed_fn,
|
96 |
inputs=[seed, randomize_seed],
|
97 |
outputs=seed,
|
|
|
79 |
guidance_scale,
|
80 |
num_inference_steps,
|
81 |
]
|
82 |
+
gr.on(
|
83 |
+
triggers=[prompt.submit, run_button.click],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
fn=randomize_seed_fn,
|
85 |
inputs=[seed, randomize_seed],
|
86 |
outputs=seed,
|
requirements.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
diffusers==0.21.2
|
2 |
-
gradio==3.
|
|
|
3 |
torch==2.0.0
|
4 |
torchvision==0.15.1
|
5 |
-
transformers==4.
|
6 |
trimesh==3.23.5
|
|
|
1 |
diffusers==0.21.2
|
2 |
+
gradio==3.47.1
|
3 |
+
spaces==0.15.0
|
4 |
torch==2.0.0
|
5 |
torchvision==0.15.1
|
6 |
+
transformers==4.34.0
|
7 |
trimesh==3.23.5
|