Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -227,11 +227,12 @@ with gr.Blocks(
|
|
227 |
)
|
228 |
|
229 |
# Voice chat block
|
230 |
-
with gr.Blocks() as voice:
|
231 |
-
gr.
|
232 |
-
|
233 |
-
|
234 |
-
|
|
|
235 |
|
236 |
# Live chat block
|
237 |
with gr.Blocks() as livechat:
|
|
|
227 |
)
|
228 |
|
229 |
# Voice chat block
|
230 |
+
with gr.Blocks() as voice:
|
231 |
+
with gr.Row():
|
232 |
+
web_search = gr.Checkbox(label="Web Search", value=False)
|
233 |
+
input = gr.Audio(label="User Input", sources="microphone", type="filepath")
|
234 |
+
output = gr.Audio(label="AI", autoplay=True)
|
235 |
+
gr.Interface(fn=respond, inputs=[input, web_search], outputs=[output], live=True)
|
236 |
|
237 |
# Live chat block
|
238 |
with gr.Blocks() as livechat:
|