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