Spaces:
Running on Zero
Running on Zero
Jahmori commited on
Commit ·
896f6de
1
Parent(s): 3565428
- changed sync bucket back to .local
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def process_audio(mixture):
|
|
| 52 |
|
| 53 |
|
| 54 |
# Downloads RE-SepFormer model from huggingface buckets to space local directory
|
| 55 |
-
sync_bucket("hf://buckets/Jahmori-R/PureVoiceAISpace-storage","./
|
| 56 |
|
| 57 |
# ---------------------------------------------------------
|
| 58 |
# INITIALIZE MODELS
|
|
@@ -62,7 +62,7 @@ def process_audio(mixture):
|
|
| 62 |
|
| 63 |
#Loading Resepformer Model
|
| 64 |
try:
|
| 65 |
-
separator = SepformerSeparation.from_hparams(source=f"./
|
| 66 |
|
| 67 |
# separator = SepformerSeparation.from_hparams(
|
| 68 |
# source="Jahmori-R/resepformer-librimix2spk",
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
# Downloads RE-SepFormer model from huggingface buckets to space local directory
|
| 55 |
+
sync_bucket("hf://buckets/Jahmori-R/PureVoiceAISpace-storage","./local" )
|
| 56 |
|
| 57 |
# ---------------------------------------------------------
|
| 58 |
# INITIALIZE MODELS
|
|
|
|
| 62 |
|
| 63 |
#Loading Resepformer Model
|
| 64 |
try:
|
| 65 |
+
separator = SepformerSeparation.from_hparams(source=f"./local/resepformer-librimix2spk",hparams_file="hyperparams.yaml",run_opts={"device": "cuda"})
|
| 66 |
|
| 67 |
# separator = SepformerSeparation.from_hparams(
|
| 68 |
# source="Jahmori-R/resepformer-librimix2spk",
|