Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,7 @@ pipe = StableDiffusion3Pipeline.from_pretrained(
|
|
10 |
)
|
11 |
|
12 |
def generate_image(prompt):
|
13 |
-
with torch.
|
14 |
-
print(f"Current device: {torch.device(device)}")
|
15 |
image = pipe(
|
16 |
prompt=prompt,
|
17 |
height=(height := 512),
|
|
|
10 |
)
|
11 |
|
12 |
def generate_image(prompt):
|
13 |
+
with torch.grad():
|
|
|
14 |
image = pipe(
|
15 |
prompt=prompt,
|
16 |
height=(height := 512),
|