Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,8 +76,6 @@ pipeline = Pipeline.from_pretrained("pyannote/[email protected]",
|
|
76 |
use_auth_token=huggingface_token).to(device)
|
77 |
output_directory = '/MP3_Split'
|
78 |
|
79 |
-
os.makedirs(output_directory, exist_ok=True)
|
80 |
-
|
81 |
def split_by_speaker(file_path, output_dir):
|
82 |
# Load the MP3 file
|
83 |
audio = AudioSegment.from_mp3(file_path)
|
|
|
76 |
use_auth_token=huggingface_token).to(device)
|
77 |
output_directory = '/MP3_Split'
|
78 |
|
|
|
|
|
79 |
def split_by_speaker(file_path, output_dir):
|
80 |
# Load the MP3 file
|
81 |
audio = AudioSegment.from_mp3(file_path)
|