adinarayana commited on
Commit
73497ab
·
verified ·
1 Parent(s): 5949d34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -35,14 +35,11 @@ def handle_user_input(user_text, user_voice):
35
 
36
  return chat_reply, audio
37
 
38
- # Define input components
39
- text_input = gr.Textbox(label="Enter your text (optional)")
40
- voice_input = gr.Audio(sources=["microphone"], type="filepath")
41
 
42
  # Create and launch the Gradio interface
43
  iface = gr.Interface(
44
  fn=handle_user_input,
45
- inputs=[text_input, voice_input],
46
  outputs=[gr.Textbox(label="Assistant Text"), gr.Audio(label="Assistant Voice (if text input)")],
47
  live=True,
48
  title="AI Voice Assistant",
 
35
 
36
  return chat_reply, audio
37
 
 
 
 
38
 
39
  # Create and launch the Gradio interface
40
  iface = gr.Interface(
41
  fn=handle_user_input,
42
+ inputs=[gr.Textbox(label="Enter your text (optional)"), gr.Audio(sources=["microphone"], type="filepath")],
43
  outputs=[gr.Textbox(label="Assistant Text"), gr.Audio(label="Assistant Voice (if text input)")],
44
  live=True,
45
  title="AI Voice Assistant",