Ghamryy commited on
Commit
ef75de5
1 Parent(s): ecf15a7

cuda enabled

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ base = DiffusionPipeline.from_pretrained(
11
  torch_dtype=torch.float16,
12
  use_safetensors=True
13
  )
14
- # base.to("cuda")
15
 
16
  def text2Image(prompt, steps=50, scale=7, Width=1024, Height=1024):
17
  image = base(prompt, num_inference_steps=steps, guidance_scale=scale,
 
11
  torch_dtype=torch.float16,
12
  use_safetensors=True
13
  )
14
+ base.to("cuda")
15
 
16
  def text2Image(prompt, steps=50, scale=7, Width=1024, Height=1024):
17
  image = base(prompt, num_inference_steps=steps, guidance_scale=scale,