Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -153,9 +153,9 @@ async def respond(audio, web_search):
|
|
153 |
with gr.Blocks() as demo:
|
154 |
with gr.Row():
|
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)
|
159 |
-
|
160 |
if __name__ == "__main__":
|
161 |
demo.queue(max_size=200).launch()
|
|
|
153 |
with gr.Blocks() as demo:
|
154 |
with gr.Row():
|
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()
|