remove useless assert in convert_to_wav
This commit is contained in:
parent
3c651d65aa
commit
d5877058e3
1
app.py
1
app.py
|
@ -17,7 +17,6 @@ os.makedirs("uploads", exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
def convert_to_wav(file_name: str):
|
def convert_to_wav(file_name: str):
|
||||||
assert file_name.endswith(".wav")
|
|
||||||
output, extension = file_name.rsplit(".", maxsplit=1)
|
output, extension = file_name.rsplit(".", maxsplit=1)
|
||||||
|
|
||||||
assert extension != "wav"
|
assert extension != "wav"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user