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