Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def refresh_folders():
|
|
| 50 |
|
| 51 |
# Function to get the list of audio files in the specified directory
|
| 52 |
def get_audio_files():
|
| 53 |
-
if not os.path.exists(
|
| 54 |
os.makedirs(AUDIO_DIR)
|
| 55 |
# List all supported audio file formats
|
| 56 |
return [f for f in os.listdir(AUDIO_DIR) if f.lower().endswith(('.mp3', '.wav', '.flac', '.ogg', '.aac'))]
|
|
|
|
| 50 |
|
| 51 |
# Function to get the list of audio files in the specified directory
|
| 52 |
def get_audio_files():
|
| 53 |
+
if not os.path.exists(AUDIO_DIR):
|
| 54 |
os.makedirs(AUDIO_DIR)
|
| 55 |
# List all supported audio file formats
|
| 56 |
return [f for f in os.listdir(AUDIO_DIR) if f.lower().endswith(('.mp3', '.wav', '.flac', '.ogg', '.aac'))]
|