Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,7 @@ from sam_audio import SAMAudio, SAMAudioProcessor
|
|
| 9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 10 |
model = SAMAudio.from_pretrained("facebook/sam-audio-large",
|
| 11 |
token=os.environ.get("HF_TOKEN")).to(device).eval()
|
| 12 |
-
processor = SAMAudioProcessor.from_pretrained("facebook/sam-audio-large"
|
| 13 |
-
token=os.environ.get("HF_TOKEN"))
|
| 14 |
|
| 15 |
def separate_audio(audio_path, description, reranking_candidates):
|
| 16 |
if audio_path is None or not description:
|
|
|
|
| 9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 10 |
model = SAMAudio.from_pretrained("facebook/sam-audio-large",
|
| 11 |
token=os.environ.get("HF_TOKEN")).to(device).eval()
|
| 12 |
+
processor = SAMAudioProcessor.from_pretrained("facebook/sam-audio-large")
|
|
|
|
| 13 |
|
| 14 |
def separate_audio(audio_path, description, reranking_candidates):
|
| 15 |
if audio_path is None or not description:
|