fffiloni commited on
Commit
647628f
·
verified ·
1 Parent(s): a87e27c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ def reset_inference_state():
153
 
154
  # Move necessary models back to the correct device
155
  if low_vram:
156
- models_to(models_rbm, device="cpu", excepts=["generator", "previewer"])
157
  models_rbm.generator.to(device)
158
  models_rbm.previewer.to(device)
159
  else:
 
153
 
154
  # Move necessary models back to the correct device
155
  if low_vram:
156
+ models_to(models_rbm, device=device, excepts=["generator", "previewer"])
157
  models_rbm.generator.to(device)
158
  models_rbm.previewer.to(device)
159
  else: