Spaces:
Sleeping
Sleeping
Upload myinfer_latest.py
Browse files- myinfer_latest.py +5 -2
myinfer_latest.py
CHANGED
|
@@ -276,8 +276,11 @@ def cut_vocal_and_inst(audio_path,spk_id,unique_id):
|
|
| 276 |
#logs.append("Starting the audio splitting process...")
|
| 277 |
#yield "\n".join(logs), None, None
|
| 278 |
print("before executing splitter")
|
| 279 |
-
command = f"
|
| 280 |
-
|
|
|
|
|
|
|
|
|
|
| 281 |
|
| 282 |
|
| 283 |
|
|
|
|
| 276 |
#logs.append("Starting the audio splitting process...")
|
| 277 |
#yield "\n".join(logs), None, None
|
| 278 |
print("before executing splitter")
|
| 279 |
+
command = f"demucs --two-stems=vocals -n {split_model} {audio_path} -o output/{spk_id}_{unique_id}"
|
| 280 |
+
env = os.environ.copy()
|
| 281 |
+
|
| 282 |
+
# Add or modify the environment variable for this subprocess
|
| 283 |
+
env["CUDA_VISIBLE_DEVICES"] = "0"
|
| 284 |
|
| 285 |
|
| 286 |
|