multimodalart HF staff commited on
Commit
4aa6570
1 Parent(s): 71d0bce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ for item in sdxl_loras:
51
  saved_name = hf_hub_download(item["repo"], item["weights"])
52
 
53
  if not saved_name.endswith('.safetensors'):
54
- state_dict = torch.load(saved_name)
55
  else:
56
  state_dict = load_file(saved_name)
57
 
 
51
  saved_name = hf_hub_download(item["repo"], item["weights"])
52
 
53
  if not saved_name.endswith('.safetensors'):
54
+ state_dict = torch.load(saved_name, map_location=torch.device('cpu'))
55
  else:
56
  state_dict = load_file(saved_name)
57