Loren commited on
Commit
e3dbbb4
·
verified ·
1 Parent(s): 68a37bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -427,7 +427,9 @@ def clear_audio():
427
  return None, None, None, None
428
  ###
429
 
430
-
 
 
431
 
432
  #### Gradio interface
433
  with gr.Blocks(title="Voxtral") as voxtral:
@@ -469,6 +471,11 @@ with gr.Blocks(title="Voxtral") as voxtral:
469
  )
470
  status_output1 = gr.Markdown()
471
  with gr.Row():
 
 
 
 
 
472
  voice_button1 = gr.Button("Extract voice (if noisy environment)")
473
  voice_button1.click(
474
  fn=voice_extract_demucs,
 
427
  return None, None, None, None
428
  ###
429
 
430
+ def get_sel_audio(audio_path: str) -> str:
431
+ return audio_path
432
+ ###
433
 
434
  #### Gradio interface
435
  with gr.Blocks(title="Voxtral") as voxtral:
 
471
  )
472
  status_output1 = gr.Markdown()
473
  with gr.Row():
474
+ voice_button0 = gr.Button("Process original audio")
475
+ voice_button0.click(
476
+ fn=get_sel_audio,
477
+ input=sel_audio1,
478
+ outputs=[sel_audio])
479
  voice_button1 = gr.Button("Extract voice (if noisy environment)")
480
  voice_button1.click(
481
  fn=voice_extract_demucs,