Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,8 +100,7 @@ def load_model(model_name: str):
|
|
100 |
|
101 |
file_data = st.file_uploader("Upload your audio(.wav) file")
|
102 |
|
103 |
-
|
104 |
-
if file_data is not None:
|
105 |
# To read file as bytes:
|
106 |
bytes_data = file_data.getvalue()
|
107 |
|
|
|
100 |
|
101 |
file_data = st.file_uploader("Upload your audio(.wav) file")
|
102 |
|
103 |
+
if file_data is not None and file_data.name[-4:] == ".wav":
|
|
|
104 |
# To read file as bytes:
|
105 |
bytes_data = file_data.getvalue()
|
106 |
|