Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -256,7 +256,12 @@ def run(audio_files, file_m, file_index):
|
|
256 |
|
257 |
def process_audio(audio_files, file_m, file_index):
|
258 |
result, first_audio = run(audio_files, file_m, file_index)
|
259 |
-
|
|
|
|
|
|
|
|
|
|
|
260 |
|
261 |
|
262 |
def model_conf():
|
|
|
256 |
|
257 |
def process_audio(audio_files, file_m, file_index):
|
258 |
result, first_audio = run(audio_files, file_m, file_index)
|
259 |
+
|
260 |
+
# Ensure first_audio is correctly formatted as a valid file path
|
261 |
+
if not os.path.exists(first_audio):
|
262 |
+
raise ValueError(f"Processed audio file not found at: {first_audio}")
|
263 |
+
|
264 |
+
return result, gr.update(value=first_audio, visible=True)
|
265 |
|
266 |
|
267 |
def model_conf():
|