wusize commited on
Commit
e4fb2d4
·
verified ·
1 Parent(s): 1989442

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. .idea/workspace.xml +1 -1
  2. app.py +2 -5
.idea/workspace.xml CHANGED
@@ -54,7 +54,7 @@
54
  <option name="number" value="Default" />
55
  <option name="presentableId" value="Default" />
56
  <updated>1760056680813</updated>
57
- <workItem from="1760056681869" duration="4675000" />
58
  </task>
59
  <servers />
60
  </component>
 
54
  <option name="number" value="Default" />
55
  <option name="presentableId" value="Default" />
56
  <updated>1760056680813</updated>
57
+ <workItem from="1760056681869" duration="5346000" />
58
  </task>
59
  <servers />
60
  </component>
app.py CHANGED
@@ -43,11 +43,8 @@ _ = snapshot_download(
43
  local_dir_use_symlinks=False,
44
  revision="main",
45
  )
46
- checkpoint_path = "checkpoints/Puffin-Base.pth"
47
- checkpoint = torch.load(checkpoint_path, map_location='cpu')
48
- _ = model.load_state_dict(checkpoint, strict=False)
49
-
50
- os.remove(checkpoint)
51
 
52
  _ = snapshot_download(
53
  repo_id="wusize/Puffin",
 
43
  local_dir_use_symlinks=False,
44
  revision="main",
45
  )
46
+ _ = model.load_state_dict(torch.load("checkpoints/Puffin-Base.pth", map_location='cpu'), strict=False)
47
+ os.remove("checkpoints/Puffin-Base.pth")
 
 
 
48
 
49
  _ = snapshot_download(
50
  repo_id="wusize/Puffin",