lomit commited on
Commit
c73232d
·
1 Parent(s): 83f790a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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