Masrkai commited on
Commit
5d2ecc5
1 Parent(s): b7d3318

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("cuda")
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=64,
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