Spaces:
Sleeping
Sleeping
viboognesh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ if "formatted_chat_history" not in st.session_state:
|
|
25 |
if "just_chat_history" not in st.session_state:
|
26 |
st.session_state.just_chat_history = []
|
27 |
|
28 |
-
for chat_index in range(0,len(st.session_state.
|
29 |
-
assert len(st.session_state.
|
30 |
for col, chat_history, sources_text in zip(st.columns(2, vertical_alignment="top"), [st.session_state.just_chat_history, st.session_state.formatted_chat_history], ["Current Model", "Formatted Text"]):
|
31 |
chat = chat_history[chat_index]
|
32 |
with col.chat_message("user"):
|
|
|
25 |
if "just_chat_history" not in st.session_state:
|
26 |
st.session_state.just_chat_history = []
|
27 |
|
28 |
+
for chat_index in range(0,len(st.session_state.formatted_chat_history)):
|
29 |
+
assert len(st.session_state.formatted_chat_history) == len(st.session_state.just_chat_history)
|
30 |
for col, chat_history, sources_text in zip(st.columns(2, vertical_alignment="top"), [st.session_state.just_chat_history, st.session_state.formatted_chat_history], ["Current Model", "Formatted Text"]):
|
31 |
chat = chat_history[chat_index]
|
32 |
with col.chat_message("user"):
|