freddyaboulton HF staff commited on
Commit
d778dbd
1 Parent(s): 1ee1757

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -165,11 +165,11 @@ with gr.Blocks() as demo:
165
  api_key_input.submit(set_api_key, inputs=[api_key_input],
166
  outputs=[client_state, mic_row, api_row])
167
  audio.stream(
168
- ReplyOnPause(response),
169
  inputs=[audio, lepton_conversation, chatbot, client_state],
170
  outputs=[audio]
171
  )
172
  audio.on_additional_outputs(lambda l, g: (l, g), outputs=[lepton_conversation, chatbot],
173
  queue=False, show_progress="hidden")
174
 
175
- demo.launch()
 
165
  api_key_input.submit(set_api_key, inputs=[api_key_input],
166
  outputs=[client_state, mic_row, api_row])
167
  audio.stream(
168
+ ReplyOnPause(response, output_sample_rate=44100, output_frame_size=882),
169
  inputs=[audio, lepton_conversation, chatbot, client_state],
170
  outputs=[audio]
171
  )
172
  audio.on_additional_outputs(lambda l, g: (l, g), outputs=[lepton_conversation, chatbot],
173
  queue=False, show_progress="hidden")
174
 
175
+ demo.launch()