DiningSystem commited on
Commit
24bf5c0
1 Parent(s): 34ca8b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import torch
4
 
5
  #remember to login with token before loading model
6
  def text_to_hair(prompt, num_inference_steps=500, guidance_scale=8, model_path ="CVH-vn1210/hair-model"):
7
- pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2",torch_dtype=torch.float16)
8
  pipe.unet.load_attn_procs(model_path)
9
  pipe.to("cuda")
10
  image = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=8).images[0]
 
4
 
5
  #remember to login with token before loading model
6
  def text_to_hair(prompt, num_inference_steps=500, guidance_scale=8, model_path ="CVH-vn1210/hair-model"):
7
+ pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2",torch_dtype=torch.float16,token="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")
8
  pipe.unet.load_attn_procs(model_path)
9
  pipe.to("cuda")
10
  image = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=8).images[0]