hareballak commited on
Commit
756ab53
·
verified ·
1 Parent(s): a2b3c02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def chatbot(audio, message, history, system_message, max_tokens, temperature, to
80
  demo = gr.Interface(
81
  fn=chatbot,
82
  inputs=[
83
- gr.Audio(source="microphone", type="file", label="Speak to the Bot"), # Adjusted for microphone input
84
  gr.Textbox(value="How can I help you?", label="Text Input (optional)"),
85
  gr.State(), # Use this for tracking conversation state if necessary
86
  gr.Textbox(value="You are a friendly chatbot.", label="System message"),
 
80
  demo = gr.Interface(
81
  fn=chatbot,
82
  inputs=[
83
+ gr.Audio(type="numpy", label="Speak to the Bot",recording=True), # Adjusted for microphone input
84
  gr.Textbox(value="How can I help you?", label="Text Input (optional)"),
85
  gr.State(), # Use this for tracking conversation state if necessary
86
  gr.Textbox(value="You are a friendly chatbot.", label="System message"),