mortal99 commited on
Commit
46e2de7
1 Parent(s): f97f9a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def quickstart(prompt):
16
 
17
  # 4.样式设计
18
  with gr.Blocks() as demo:
19
- gr.Markdown("# 用 LoRA 和 DreamBooth 创作: 万物皆会Coding")
20
  gr.Image("2100.png")
21
  gr.Markdown("## prompt: A picture of person coding")
22
  gr.Markdown("## prompt: A picture of dog coding")
@@ -28,7 +28,7 @@ with gr.Blocks() as demo:
28
  # 6.加载模型
29
  pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
30
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
31
- pipe.unet.load_attn_procs("", from_hf_hub=True)
32
 
33
  # 7.启动
34
  demo.launch()
 
16
 
17
  # 4.样式设计
18
  with gr.Blocks() as demo:
19
+ gr.Markdown("# 用 LoRA 和 DreamBooth 创作: 万物皆Coding")
20
  gr.Image("2100.png")
21
  gr.Markdown("## prompt: A picture of person coding")
22
  gr.Markdown("## prompt: A picture of dog coding")
 
28
  # 6.加载模型
29
  pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
30
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
31
+ pipe.unet.load_attn_procs("paddle_lora_weights.pdparams", from_hf_hub=True)
32
 
33
  # 7.启动
34
  demo.launch()