Aniquel commited on
Commit
fab5430
1 Parent(s): 32f82e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -59,7 +59,9 @@ def clear_chat():
59
  # Define interface
60
  interface = gr.Interface(
61
  chat,
62
- inputs=["text", gr.inputs.Voice()],
 
 
63
  outputs=["text", gr.outputs.Voice()],
64
  title="Chatbot with OpenAI's GPT-3.5 Model",
65
  description="An interactive chatbot using OpenAI's GPT-3.5 model with chat persistence and voice inputs/outputs.",
 
59
  # Define interface
60
  interface = gr.Interface(
61
  chat,
62
+ inputs=["text",
63
+ gr.Audio(source="microphone", type="numpy"),
64
+ ],
65
  outputs=["text", gr.outputs.Voice()],
66
  title="Chatbot with OpenAI's GPT-3.5 Model",
67
  description="An interactive chatbot using OpenAI's GPT-3.5 model with chat persistence and voice inputs/outputs.",