Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,6 +102,8 @@ def get_table_download_link(file_path):
|
|
102 |
ext = os.path.splitext(file_name)[1] # get the file extension
|
103 |
if ext == '.txt':
|
104 |
mime_type = 'text/plain'
|
|
|
|
|
105 |
elif ext == '.htm':
|
106 |
mime_type = 'text/html'
|
107 |
elif ext == '.md':
|
|
|
102 |
ext = os.path.splitext(file_name)[1] # get the file extension
|
103 |
if ext == '.txt':
|
104 |
mime_type = 'text/plain'
|
105 |
+
elif ext == '.wav':
|
106 |
+
mime_type = 'audio/x-wav'
|
107 |
elif ext == '.htm':
|
108 |
mime_type = 'text/html'
|
109 |
elif ext == '.md':
|