sweetcocoa commited on
Commit
1aa2e4c
1 Parent(s): 11b1c3b
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ def model_load():
16
  wrapper = wrapper.load_from_checkpoint(
17
  "https://huggingface.co/sweetcocoa/pop2piano/resolve/main/model-1999-val_0.67311615.ckpt",
18
  config=config,
19
- ).cuda()
 
20
  model_id = "dpipqxiy"
21
  wrapper.eval()
22
  return wrapper, model_id, config
 
16
  wrapper = wrapper.load_from_checkpoint(
17
  "https://huggingface.co/sweetcocoa/pop2piano/resolve/main/model-1999-val_0.67311615.ckpt",
18
  config=config,
19
+ map_location="cpu",
20
+ )
21
  model_id = "dpipqxiy"
22
  wrapper.eval()
23
  return wrapper, model_id, config