Spaces:
Sleeping
Sleeping
update
Browse files
main.py
CHANGED
@@ -81,6 +81,7 @@ def process(
|
|
81 |
# audio convert
|
82 |
in_filename = Path(in_filename)
|
83 |
out_filename = Path(tempfile.gettempdir()) / "asr" / in_filename.name
|
|
|
84 |
|
85 |
audio_convert(in_filename=in_filename.as_posix(),
|
86 |
out_filename=out_filename.as_posix(),
|
|
|
81 |
# audio convert
|
82 |
in_filename = Path(in_filename)
|
83 |
out_filename = Path(tempfile.gettempdir()) / "asr" / in_filename.name
|
84 |
+
out_filename.parent.mkdir(parents=True, exist_ok=True)
|
85 |
|
86 |
audio_convert(in_filename=in_filename.as_posix(),
|
87 |
out_filename=out_filename.as_posix(),
|