Spaces:
Running on Zero
Running on Zero
Read the beat checkpoint from the weights repository, not from another Space
Browse files
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.
|
| 60 |
-
|
|
|
|
| 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/
|
|
|
|
|
|
|
| 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:
|