KingNish commited on
Commit
ef67ae1
·
verified ·
1 Parent(s): e399fb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -75,11 +75,10 @@ with gr.Blocks(
75
 
76
  # Voice chat block
77
  with gr.Blocks() as voice:
78
- with gr.Row():
79
- web_search = gr.Checkbox(label="Web Search", value=False)
80
- input = gr.Audio(label="User Input", sources="microphone", type="filepath")
81
- output = gr.Audio(label="AI", autoplay=True)
82
- gr.Interface(fn=respond, inputs=[input, web_search], outputs=[output], live=True)
83
 
84
  # Live chat block
85
  with gr.Blocks() as livechat:
 
75
 
76
  # Voice chat block
77
  with gr.Blocks() as voice:
78
+ gr.Interface(fn=respond,
79
+ inputs=[gr.Audio(label="User Input", sources="microphone", type="filepath"), gr.Checkbox(label="Web Search", value=False)],
80
+ outputs=[gr.Audio(label="AI", autoplay=True)],
81
+ live=True)
 
82
 
83
  # Live chat block
84
  with gr.Blocks() as livechat: