Spaces:
Sleeping
Sleeping
Update utils/session_history2.py
Browse files
utils/session_history2.py
CHANGED
@@ -220,6 +220,9 @@ class ChatbotInterface:
|
|
220 |
# Chatbot output area.
|
221 |
chatbot_output = gr.Chatbot(label=self.output_label, type="messages")
|
222 |
|
|
|
|
|
|
|
223 |
# Use a gr.Row container as the input box with an integrated submit button.
|
224 |
with gr.Row(elem_id="input-container", equal_height=True):
|
225 |
user_input = gr.Textbox(
|
|
|
220 |
# Chatbot output area.
|
221 |
chatbot_output = gr.Chatbot(label=self.output_label, type="messages")
|
222 |
|
223 |
+
# Adding a session-specific state to store conversation history.
|
224 |
+
conversation_state = gr.State([])
|
225 |
+
|
226 |
# Use a gr.Row container as the input box with an integrated submit button.
|
227 |
with gr.Row(elem_id="input-container", equal_height=True):
|
228 |
user_input = gr.Textbox(
|