Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ pipe = StableDiffusion3Pipeline.from_pretrained(
|
|
10 |
)
|
11 |
|
12 |
def generate_image(prompt):
|
13 |
-
with torch.
|
14 |
image = pipe(
|
15 |
prompt=prompt,
|
16 |
height=(height := 512),
|
|
|
10 |
)
|
11 |
|
12 |
def generate_image(prompt):
|
13 |
+
with torch.no_grad():
|
14 |
image = pipe(
|
15 |
prompt=prompt,
|
16 |
height=(height := 512),
|