linoyts HF staff commited on
Commit
ac4a888
·
verified ·
1 Parent(s): c8c4dea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
54
  )
55
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
56
 
57
- pipe.to(device)
58
 
59
  def start_session(req: gr.Request):
60
  user_dir = os.path.join(TMP_DIR, str(req.session_hash))
 
54
  )
55
  pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
56
 
57
+ pipe.to('cuda')
58
 
59
  def start_session(req: gr.Request):
60
  user_dir = os.path.join(TMP_DIR, str(req.session_hash))