mpandzo commited on
Commit
24b011f
1 Parent(s): 25b2650

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ pipe = StableDiffusion3Pipeline.from_pretrained(
10
  )
11
 
12
  def generate_image(prompt):
13
- with torch.grad():
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),