Spaces:
Running
Running
Update audio_sep_splitter.py
Browse files- audio_sep_splitter.py +5 -4
audio_sep_splitter.py
CHANGED
|
@@ -169,14 +169,15 @@ def batch_process_for_file(input_path, output_path, stem, filter_type, splitter)
|
|
| 169 |
stem_track_url, back_track_url = check_file(file_id)
|
| 170 |
|
| 171 |
print(f'Downloading the stem track file "{stem_track_url}"...')
|
| 172 |
-
|
| 173 |
-
print(f'The stem track file has been downloaded to "{
|
| 174 |
|
| 175 |
print(f'Downloading the back track file "{back_track_url}"...')
|
| 176 |
-
|
| 177 |
-
print(f'The back track file has been downloaded to "{
|
| 178 |
|
| 179 |
print(f'The file "{input_path}" has been successfully split')
|
|
|
|
| 180 |
except Exception as err:
|
| 181 |
print(f'Cannot process the file "{input_path}": {err}')
|
| 182 |
|
|
|
|
| 169 |
stem_track_url, back_track_url = check_file(file_id)
|
| 170 |
|
| 171 |
print(f'Downloading the stem track file "{stem_track_url}"...')
|
| 172 |
+
stem_file = download_file(stem_track_url, output_path)
|
| 173 |
+
print(f'The stem track file has been downloaded to "{stem_file}"')
|
| 174 |
|
| 175 |
print(f'Downloading the back track file "{back_track_url}"...')
|
| 176 |
+
back_track_file = download_file(back_track_url, output_path)
|
| 177 |
+
print(f'The back track file has been downloaded to "{back_track_file}"')
|
| 178 |
|
| 179 |
print(f'The file "{input_path}" has been successfully split')
|
| 180 |
+
return stem_file
|
| 181 |
except Exception as err:
|
| 182 |
print(f'Cannot process the file "{input_path}": {err}')
|
| 183 |
|