Spaces:
Runtime error
Runtime error
Update dj_sd.py
Browse files
dj_sd.py
CHANGED
|
@@ -13,7 +13,7 @@ import requests
|
|
| 13 |
#from share_btn import community_icon_html, loading_icon_html, share_js
|
| 14 |
|
| 15 |
model_id = "CompVis/stable-diffusion-v1-4"
|
| 16 |
-
device = "
|
| 17 |
MY_SECRET_TOKEN=os.environ.get('HF_TOKEN_SD')
|
| 18 |
YOUR_TOKEN=MY_SECRET_TOKEN
|
| 19 |
#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.
|
|
|
|
| 13 |
#from share_btn import community_icon_html, loading_icon_html, share_js
|
| 14 |
|
| 15 |
model_id = "CompVis/stable-diffusion-v1-4"
|
| 16 |
+
device = "cpu"
|
| 17 |
MY_SECRET_TOKEN=os.environ.get('HF_TOKEN_SD')
|
| 18 |
YOUR_TOKEN=MY_SECRET_TOKEN
|
| 19 |
#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.
|