Tempuror commited on
Commit
e960003
·
1 Parent(s): 6d7c492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "sd-poster-model"
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")