tracyorcaleb
commited on
Commit
·
f071278
1
Parent(s):
85113fd
Drop token
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def add_static_image_to_audio(image, audio):
|
|
32 |
def get_stable_diffusion_image(prompt):
|
33 |
model_id = "CompVis/stable-diffusion-v1-4"
|
34 |
device = "cuda"
|
35 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id
|
36 |
pipe = pipe.to(device)
|
37 |
with autocast("cuda"):
|
38 |
image = pipe(prompt, guidance_scale=7.5)["sample"][0]
|
|
|
32 |
def get_stable_diffusion_image(prompt):
|
33 |
model_id = "CompVis/stable-diffusion-v1-4"
|
34 |
device = "cuda"
|
35 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id)
|
36 |
pipe = pipe.to(device)
|
37 |
with autocast("cuda"):
|
38 |
image = pipe(prompt, guidance_scale=7.5)["sample"][0]
|