Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,7 @@ diffusion_pipe = DiffusionPipeline.from_pretrained(
|
|
18 |
use_safetensors=True,
|
19 |
add_watermarker=False,
|
20 |
variant="fp16"
|
21 |
-
)
|
22 |
-
diffusion_pipe.to(device)
|
23 |
|
24 |
|
25 |
def get_input_ids(inst, bot_prefix):
|
@@ -73,7 +72,6 @@ def generate(
|
|
73 |
print(expanded_description)
|
74 |
|
75 |
seed = random.randint(0, 2147483647)
|
76 |
-
diffusion_pipe.to(device)
|
77 |
generator = torch.Generator().manual_seed(seed)
|
78 |
|
79 |
images = diffusion_pipe(
|
|
|
18 |
use_safetensors=True,
|
19 |
add_watermarker=False,
|
20 |
variant="fp16"
|
21 |
+
).to(device)
|
|
|
22 |
|
23 |
|
24 |
def get_input_ids(inst, bot_prefix):
|
|
|
72 |
print(expanded_description)
|
73 |
|
74 |
seed = random.randint(0, 2147483647)
|
|
|
75 |
generator = torch.Generator().manual_seed(seed)
|
76 |
|
77 |
images = diffusion_pipe(
|