akshansh36 commited on
Commit
c3f5949
·
verified ·
1 Parent(s): ee896be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- return result, gr.update(value=first_audio, visible=True)
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():