Update app.py
Browse files
app.py
CHANGED
|
@@ -19,15 +19,15 @@ with gr.Blocks() as demo:
|
|
| 19 |
|
| 20 |
# First Column with 20% width
|
| 21 |
with gr.Column(scale=1):
|
| 22 |
-
save_button = gr.Button("
|
| 23 |
-
display_chat_names = gr.Textbox(label="Chat histories",placeholder="Chat names not found", readonly=True, lines=16)
|
| 24 |
-
dropdown = gr.Dropdown(label="just Select to load chat",choices=["no chat found"])
|
| 25 |
-
enter_chat_name = gr.Textbox(label="just enter the number to load chat",placeholder="1")
|
| 26 |
-
load_button = gr.Button("Load Chat",visible=False)
|
| 27 |
|
| 28 |
|
| 29 |
# Second Column with 80% width
|
| 30 |
-
with gr.Column(scale=
|
| 31 |
chatbot = gr.Chatbot([[None,"Hi there, what brings you here today?"]])
|
| 32 |
msg = gr.Textbox()
|
| 33 |
audio_input = gr.Audio(autoplay=True,value="input.wav")
|
|
|
|
| 19 |
|
| 20 |
# First Column with 20% width
|
| 21 |
with gr.Column(scale=1):
|
| 22 |
+
save_button = gr.Button("Start new Chat")
|
| 23 |
+
display_chat_names = gr.Textbox(visible=False,label="Chat histories",placeholder="Chat names not found", readonly=True, lines=16)
|
| 24 |
+
dropdown = gr.Dropdown(visible=False,label="just Select to load chat",choices=["no chat found"])
|
| 25 |
+
enter_chat_name = gr.Textbox(visible=False,label="just enter the number to load chat",placeholder="1")
|
| 26 |
+
load_button = gr.Button(visible=False,"Load Chat",visible=False)
|
| 27 |
|
| 28 |
|
| 29 |
# Second Column with 80% width
|
| 30 |
+
with gr.Column(scale=5):
|
| 31 |
chatbot = gr.Chatbot([[None,"Hi there, what brings you here today?"]])
|
| 32 |
msg = gr.Textbox()
|
| 33 |
audio_input = gr.Audio(autoplay=True,value="input.wav")
|