Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,9 @@ import re
|
|
10 |
model_id = "CompVis/stable-diffusion-v1-4"
|
11 |
device = "cuda"
|
12 |
|
13 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=
|
14 |
pipe = pipe.to(device)
|
15 |
-
word_list_dataset = load_dataset("stabilityai/word-list", data_files="list.txt", use_auth_token=
|
16 |
word_list = word_list_dataset["train"]['text']
|
17 |
|
18 |
def infer(prompt, samples, steps, scale, seed):
|
10 |
model_id = "CompVis/stable-diffusion-v1-4"
|
11 |
device = "cuda"
|
12 |
|
13 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, use_auth_token=False, revision="fp16", torch_dtype=torch.float16)
|
14 |
pipe = pipe.to(device)
|
15 |
+
word_list_dataset = load_dataset("stabilityai/word-list", data_files="list.txt", use_auth_token=False)
|
16 |
word_list = word_list_dataset["train"]['text']
|
17 |
|
18 |
def infer(prompt, samples, steps, scale, seed):
|