Update app.py
Browse files
app.py
CHANGED
|
@@ -31,11 +31,12 @@ with gr.Blocks() as demo:
|
|
| 31 |
with gr.Row():
|
| 32 |
display_chat_names = gr.Textbox(label="Chat histories",placeholder="Chat names not found", lines=16)
|
| 33 |
dropdown = gr.Dropdown(label="just Select to load chat",choices=["no chat found"])
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
| 39 |
|
| 40 |
def respond(message, chat_history):
|
| 41 |
# Basic echo response
|
|
|
|
| 31 |
with gr.Row():
|
| 32 |
display_chat_names = gr.Textbox(label="Chat histories",placeholder="Chat names not found", lines=16)
|
| 33 |
dropdown = gr.Dropdown(label="just Select to load chat",choices=["no chat found"])
|
| 34 |
+
with gr.Row():
|
| 35 |
+
chatbot = gr.Chatbot([[None,"Hi there, what brings you here today?"]])
|
| 36 |
+
msg = gr.Textbox()
|
| 37 |
+
audio_input = gr.Microphone(label="Press start recording to speak", type="filepath",waveform_options={"waveform_color":"red"})
|
| 38 |
+
clear = gr.ClearButton([msg, chatbot])
|
| 39 |
+
audio_input2 = gr.Audio(visible=False)
|
| 40 |
|
| 41 |
def respond(message, chat_history):
|
| 42 |
# Basic echo response
|