Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
| 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 |
|