tweak
Browse files- sbtal_riksdag_asr.py +2 -1
sbtal_riksdag_asr.py
CHANGED
|
@@ -17,6 +17,7 @@
|
|
| 17 |
# Lint as: python3
|
| 18 |
"""Datasets loader to create the Riksdag data"""
|
| 19 |
# This script is full of local paths; sorry about that
|
|
|
|
| 20 |
from pathlib import Path
|
| 21 |
from pydub import AudioSegment
|
| 22 |
import numpy as np
|
|
@@ -100,4 +101,4 @@ class RDDataset(datasets.GeneratorBasedBuilder):
|
|
| 100 |
"text": text
|
| 101 |
}
|
| 102 |
if temp_wav != "":
|
| 103 |
-
|
|
|
|
| 17 |
# Lint as: python3
|
| 18 |
"""Datasets loader to create the Riksdag data"""
|
| 19 |
# This script is full of local paths; sorry about that
|
| 20 |
+
import os
|
| 21 |
from pathlib import Path
|
| 22 |
from pydub import AudioSegment
|
| 23 |
import numpy as np
|
|
|
|
| 101 |
"text": text
|
| 102 |
}
|
| 103 |
if temp_wav != "":
|
| 104 |
+
os.unlink(temp_wav)
|