harp-dev commited on
Commit
2545498
·
verified ·
1 Parent(s): cbff866

Read the beat checkpoint from the weights repository, not from another Space

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -56,12 +56,15 @@ model_lock = threading.Lock()
56
 
57
  def download_beat_checkpoint():
58
  """Fetch the beat-tracking checkpoint in the background so the server can
59
- start immediately. Reuses the already-deployed teamup-tech/beat-this
60
- Space's copy instead of re-uploading the same file here."""
 
61
  global beat_checkpoint_path, beat_checkpoint_ready, beat_checkpoint_error
62
  try:
63
  beat_checkpoint_path = hf_hub_download(
64
- repo_id="teamup-tech/beat-this", filename="final0.ckpt", repo_type="space"
 
 
65
  )
66
  print("Beat-tracking checkpoint downloaded.")
67
  except Exception as e:
 
56
 
57
  def download_beat_checkpoint():
58
  """Fetch the beat-tracking checkpoint in the background so the server can
59
+ start immediately. Read from the weights repository that Beat-This itself
60
+ reads, rather than from that Space's own files, so neither deployment
61
+ depends on the other's layout."""
62
  global beat_checkpoint_path, beat_checkpoint_ready, beat_checkpoint_error
63
  try:
64
  beat_checkpoint_path = hf_hub_download(
65
+ repo_id="teamup-tech/Beat-This-weights",
66
+ filename="final0.ckpt",
67
+ revision="4afbe376535aaab71b76ae2ca2d7c16b08877321",
68
  )
69
  print("Beat-tracking checkpoint downloaded.")
70
  except Exception as e: