Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|