Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -255,12 +255,13 @@ def run(audio_files, file_m, file_index):
|
|
255 |
|
256 |
|
257 |
def process_audio(audio_files, file_m, file_index):
|
258 |
-
result
|
|
|
259 |
|
260 |
# Create a list of Audio components with filenames as labels
|
261 |
audio_outputs = [
|
262 |
gr.Audio(value=audio_path, label=os.path.basename(audio_path), visible=True, show_share_button=False)
|
263 |
-
for audio_path in result
|
264 |
]
|
265 |
|
266 |
return result, audio_outputs
|
|
|
255 |
|
256 |
|
257 |
def process_audio(audio_files, file_m, file_index):
|
258 |
+
# 'result' should be a list of processed audio file paths
|
259 |
+
result, first_audio = run(audio_files, file_m, file_index)
|
260 |
|
261 |
# Create a list of Audio components with filenames as labels
|
262 |
audio_outputs = [
|
263 |
gr.Audio(value=audio_path, label=os.path.basename(audio_path), visible=True, show_share_button=False)
|
264 |
+
for audio_path in result # Use result directly since it's the list of file paths
|
265 |
]
|
266 |
|
267 |
return result, audio_outputs
|