slymnyldrm commited on
Commit
20c8d29
1 Parent(s): 3967dfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
14
  g_cuda = torch.Generator()
15
 
16
  def inference(prompt, negative_prompt, num_samples, height=512, width=512, num_inference_steps=50, guidance_scale=7.5, g_seed=52362):
17
- with torch.autocast("cuda"), torch.inference_mode():
18
  return pipe(
19
  prompt, height=int(height), width=int(width),
20
  negative_prompt=negative_prompt,
 
14
  g_cuda = torch.Generator()
15
 
16
  def inference(prompt, negative_prompt, num_samples, height=512, width=512, num_inference_steps=50, guidance_scale=7.5, g_seed=52362):
17
+ with torch.inference_mode():
18
  return pipe(
19
  prompt, height=int(height), width=int(width),
20
  negative_prompt=negative_prompt,