simonraj commited on
Commit
29da558
·
verified ·
1 Parent(s): 9981baa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -48,10 +48,16 @@ def respond(audio):
48
  communicate.save(tmp_path)
49
  return tmp_path
50
 
51
- with gr.Blocks() as voice:
52
  with gr.Row():
53
  input = gr.Audio(label="Voice Chat", sources="microphone", type="filepath", waveform_options=False)
54
  output = gr.Audio(label="CrucialCoach", type="filepath", interactive=False, autoplay=True)
 
 
 
 
 
 
55
 
56
  theme = gr.themes.Base()
57
 
 
48
  communicate.save(tmp_path)
49
  return tmp_path
50
 
51
+ with gr.Blocks() as voice:
52
  with gr.Row():
53
  input = gr.Audio(label="Voice Chat", sources="microphone", type="filepath", waveform_options=False)
54
  output = gr.Audio(label="CrucialCoach", type="filepath", interactive=False, autoplay=True)
55
+ gr.Interface(
56
+ fn=respond,
57
+ inputs=[input],
58
+ outputs=[output],
59
+ live=True
60
+ )
61
 
62
  theme = gr.themes.Base()
63