Spaces:
Restarting
on
Zero
Restarting
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,12 +3,12 @@ import torch
|
|
| 3 |
import torchaudio
|
| 4 |
import os
|
| 5 |
import tempfile
|
| 6 |
-
from huggingface_hub import hf_hub_download
|
| 7 |
from sam_audio import SAMAudio, SAMAudioProcessor
|
| 8 |
|
| 9 |
# --- Initialization ---
|
| 10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 11 |
-
REPO_ID = "
|
| 12 |
checkpoint_path = hf_hub_download(repo_id=REPO_ID, filename="checkpoint.pt")
|
| 13 |
|
| 14 |
# 4. Load the model and apply your weights
|
|
|
|
| 3 |
import torchaudio
|
| 4 |
import os
|
| 5 |
import tempfile
|
| 6 |
+
from huggingface_hub import hf_hub_download
|
| 7 |
from sam_audio import SAMAudio, SAMAudioProcessor
|
| 8 |
|
| 9 |
# --- Initialization ---
|
| 10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 11 |
+
REPO_ID = "ray-006/model-audio"
|
| 12 |
checkpoint_path = hf_hub_download(repo_id=REPO_ID, filename="checkpoint.pt")
|
| 13 |
|
| 14 |
# 4. Load the model and apply your weights
|