mrm8488 commited on
Commit
bdeee8d
·
1 Parent(s): 106fb6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
16
 
17
  # If you are running this code locally, you need to either do a 'huggingface-cli login` or paste your User Access Token from here https://huggingface.co/settings/tokens into the use_auth_token field below.
18
  pipe = StableDiffusionPipeline.from_pretrained(
19
- model_id, use_auth_token=True, revision="fp16", torch_dtype=torch.float16)
20
  pipe = pipe.to(device)
21
 
22
 
 
16
 
17
  # If you are running this code locally, you need to either do a 'huggingface-cli login` or paste your User Access Token from here https://huggingface.co/settings/tokens into the use_auth_token field below.
18
  pipe = StableDiffusionPipeline.from_pretrained(
19
+ model_id, use_auth_token=os.environ.get('auth_token'), revision="fp16", torch_dtype=torch.float16)
20
  pipe = pipe.to(device)
21
 
22