Update app.py
Browse files
app.py
CHANGED
|
@@ -196,7 +196,7 @@ def create_chatbot():
|
|
| 196 |
|
| 197 |
with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
|
| 198 |
gr.Markdown("### One_v_N€×U$ | Your mulTI-Modal AI companion")
|
| 199 |
-
chatbot = gr.Chatbot()
|
| 200 |
state = gr.State([])
|
| 201 |
|
| 202 |
with gr.Row():
|
|
@@ -217,7 +217,7 @@ def create_chatbot():
|
|
| 217 |
placeholder="command master",
|
| 218 |
lines=2
|
| 219 |
)
|
| 220 |
-
audio_input = gr.Audio(
|
| 221 |
send_btn = gr.Button("execute")
|
| 222 |
|
| 223 |
def respond(message, history, role, audio_file):
|
|
|
|
| 196 |
|
| 197 |
with gr.Blocks(css=custom_css, theme=gr.themes.Base()) as demo:
|
| 198 |
gr.Markdown("### One_v_N€×U$ | Your mulTI-Modal AI companion")
|
| 199 |
+
chatbot = gr.Chatbot(type='messages')
|
| 200 |
state = gr.State([])
|
| 201 |
|
| 202 |
with gr.Row():
|
|
|
|
| 217 |
placeholder="command master",
|
| 218 |
lines=2
|
| 219 |
)
|
| 220 |
+
audio_input = gr.Audio(sources=["microphone"], type="filepath")
|
| 221 |
send_btn = gr.Button("execute")
|
| 222 |
|
| 223 |
def respond(message, history, role, audio_file):
|