Spaces:
Runtime error
Runtime error
Commit
·
8ea9073
1
Parent(s):
bf186e6
set duration to 3 min
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ STEM_CHOICES = {
|
|
| 19 |
"Instrumental (No Vocals)": "instrumental"
|
| 20 |
}
|
| 21 |
|
| 22 |
-
@spaces.GPU
|
| 23 |
def separate_stem(audio_file_path: str, model_name: str, stem_choice: str) -> AudioSignal:
|
| 24 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 25 |
model = pretrained.get_model(model_name)
|
|
|
|
| 19 |
"Instrumental (No Vocals)": "instrumental"
|
| 20 |
}
|
| 21 |
|
| 22 |
+
@spaces.GPU(duration = 180)
|
| 23 |
def separate_stem(audio_file_path: str, model_name: str, stem_choice: str) -> AudioSignal:
|
| 24 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 25 |
model = pretrained.get_model(model_name)
|