hareballak commited on
Commit
15063a9
·
verified ·
1 Parent(s): fb4d33c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def chatbot(audio, message, system_message, max_tokens, temperature, top_p):
78
  demo = gr.Interface(
79
  fn=chatbot,
80
  inputs=[
81
- gr.Audio(source="microphone",type="numpy", label="Speak to the Bot"), # Adjusted for microphone input
82
  gr.Textbox(value="How can I help you?", label="Text Input (optional)"),
83
  gr.Textbox(value="You are a friendly chatbot.", label="System message"),
84
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
78
  demo = gr.Interface(
79
  fn=chatbot,
80
  inputs=[
81
+ gr.Audio(type="numpy", label="Speak to the Bot"), # Adjusted for microphone input
82
  gr.Textbox(value="How can I help you?", label="Text Input (optional)"),
83
  gr.Textbox(value="You are a friendly chatbot.", label="System message"),
84
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),