Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
|
4 |
def generate_poster(prompt):
|
5 |
-
model_path = "
|
6 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
|
7 |
pipe.unet.load_attn_procs(model_path)
|
8 |
pipe.to("cuda")
|
|
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
|
4 |
def generate_poster(prompt):
|
5 |
+
model_path = "pytorch_model.bin"
|
6 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)
|
7 |
pipe.unet.load_attn_procs(model_path)
|
8 |
pipe.to("cuda")
|