Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from diffusers.utils import export_to_gif
|
|
4 |
|
5 |
|
6 |
ckpt_id = "openai/shap-e"
|
7 |
-
pipe = ShapEPipeline.from_pretrained(repo).to("
|
8 |
|
9 |
|
10 |
guidance_scale = 15.0
|
@@ -12,7 +12,7 @@ prompt = "a shark"
|
|
12 |
images = pipe(
|
13 |
prompt,
|
14 |
guidance_scale=guidance_scale,
|
15 |
-
num_inference_steps=
|
16 |
size=256,
|
17 |
).images
|
18 |
|
|
|
4 |
|
5 |
|
6 |
ckpt_id = "openai/shap-e"
|
7 |
+
pipe = ShapEPipeline.from_pretrained(repo).to("cpu")
|
8 |
|
9 |
|
10 |
guidance_scale = 15.0
|
|
|
12 |
images = pipe(
|
13 |
prompt,
|
14 |
guidance_scale=guidance_scale,
|
15 |
+
num_inference_steps=16,
|
16 |
size=256,
|
17 |
).images
|
18 |
|