AashitaK commited on
Commit
2dad739
·
verified ·
1 Parent(s): 7a582f7

Update utils/session_history2.py

Browse files
Files changed (1) hide show
  1. utils/session_history2.py +3 -0
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(