mpandzo commited on
Commit
25b2650
1 Parent(s): 155b00a

Update app.py

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