Update app/app.py
Browse files- app/app.py +2 -2
app/app.py
CHANGED
|
@@ -168,9 +168,9 @@ class ModelAPI:
|
|
| 168 |
try:
|
| 169 |
# Enhance audio
|
| 170 |
self._enhance()
|
| 171 |
-
# Obtain list of file paths for enhanced audio
|
| 172 |
wav_files = glob.glob(os.path.join(self.enhanced_audio_path, '*.wav'))
|
| 173 |
-
# Extract just the file names
|
| 174 |
enhanced_files = [os.path.basename(file) for file in wav_files]
|
| 175 |
return {"status": True}
|
| 176 |
|
|
|
|
| 168 |
try:
|
| 169 |
# Enhance audio
|
| 170 |
self._enhance()
|
| 171 |
+
# Obtain list of file paths for enhanced audio
|
| 172 |
wav_files = glob.glob(os.path.join(self.enhanced_audio_path, '*.wav'))
|
| 173 |
+
# Extract just the file names
|
| 174 |
enhanced_files = [os.path.basename(file) for file in wav_files]
|
| 175 |
return {"status": True}
|
| 176 |
|