Spaces:
Running
Running
Update app.py
Browse files
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(
|
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"),
|