DiningSystem commited on
Commit
5153ff7
1 Parent(s): 9a4d342

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,9 +17,9 @@ my_file.close()
17
 
18
  hf.login(token=os.environ['model_token'])
19
  #remember to login with token before loading model
20
- def text_to_hair(prompt, guidance_scale=8, num_inference_steps=30, styles=data_into_list, model_path ="DiningSystem/hair-model"):
21
 
22
- pipe = StableDiffusionPipeline.from_pretrained(os.environ['bmd5'], torch_dtype=torch.float16, use_auth_token=True)
23
  pipe.unet.load_attn_procs(model_path)
24
  pipe.to("cuda")
25
  image = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale).images[0]
 
17
 
18
  hf.login(token=os.environ['model_token'])
19
  #remember to login with token before loading model
20
+ def text_to_hair(prompt, guidance_scale=8, num_inference_steps=30, styles=data_into_list, model_path ="CVH-vn1210/hair-model"):
21
 
22
+ pipe = StableDiffusionPipeline.from_pretrained(os.environ['bmd'], torch_dtype=torch.float16, use_auth_token=True)
23
  pipe.unet.load_attn_procs(model_path)
24
  pipe.to("cuda")
25
  image = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale).images[0]