israelgonzalezb
commited on
Commit
•
213252f
1
Parent(s):
899db9b
Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,6 @@ from share_btn import community_icon_html, loading_icon_html, share_js
|
|
16 |
model_id = "CompVis/stable-diffusion-v1-4"
|
17 |
device = "cuda"
|
18 |
|
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.
|
20 |
-
#pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=True, revision="fp16", torch_dtype=torch.float16)
|
21 |
-
#pipe = pipe.to(device)
|
22 |
-
#torch.backends.cudnn.benchmark = True
|
23 |
-
|
24 |
-
#When running locally, you won`t have access to this, so you can remove this part
|
25 |
word_list_dataset = load_dataset("stabilityai/word-list", data_files="list.txt", use_auth_token=True)
|
26 |
word_list = word_list_dataset["train"]['text']
|
27 |
|
|
|
16 |
model_id = "CompVis/stable-diffusion-v1-4"
|
17 |
device = "cuda"
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
word_list_dataset = load_dataset("stabilityai/word-list", data_files="list.txt", use_auth_token=True)
|
20 |
word_list = word_list_dataset["train"]['text']
|
21 |
|