KingNish commited on
Commit
e0d842c
·
verified ·
1 Parent(s): 9ddd6da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -155,7 +155,7 @@ with gr.Blocks() as demo:
155
  web_search = gr.Checkbox(label="Web Search", value=False)
156
  input = gr.Audio(label="Voice Chat", sources="microphone")
157
  output = gr.Audio(label="AI",autoplay=True)
158
- gr.Interface(fn=respond, inputs=[input, web_search], outputs=[output], live=True, batch=True, max_batch_size=20)
159
 
160
  if __name__ == "__main__":
161
  demo.queue(max_size=200).launch()
 
155
  web_search = gr.Checkbox(label="Web Search", value=False)
156
  input = gr.Audio(label="Voice Chat", sources="microphone")
157
  output = gr.Audio(label="AI",autoplay=True)
158
+ gr.Interface(fn=respond, inputs=[input, web_search], outputs=[output], live=True, batch=True, max_batch_size=20, delete_cache=(60,60))
159
 
160
  if __name__ == "__main__":
161
  demo.queue(max_size=200).launch()