freddyaboulton HF staff commited on
Commit
3738456
1 Parent(s): 0cb2b20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -101,8 +101,8 @@ with gr.Blocks() as demo:
101
  with gr.Column():
102
  transcript = gr.Chatbot(label="transcript", type="messages")
103
 
104
- audio.stream(ReplyOnPause(yield_audio), inputs=[audio], outputs=[audio], time_limit=90)
105
- audio.on_additional_outputs(respond, outputs=[transformers_convo, transcript])
106
 
107
  if __name__ == "__main__":
108
  demo.launch()
 
101
  with gr.Column():
102
  transcript = gr.Chatbot(label="transcript", type="messages")
103
 
104
+ audio.stream(ReplyOnPause(transcribe), inputs=[audio, transformers_convo, transcript], outputs=[audio])
105
+ audio.on_additional_outputs(lambda s,a: (s,a), outputs=[transformers_convo, transcript])
106
 
107
  if __name__ == "__main__":
108
  demo.launch()