eaglelandsonce commited on
Commit
055132b
·
verified ·
1 Parent(s): 2b93ce3

Update pages/4_Mixtral.py

Browse files
Files changed (1) hide show
  1. pages/4_Mixtral.py +4 -2
pages/4_Mixtral.py CHANGED
@@ -58,5 +58,7 @@ if send_button and user_input:
58
  st.session_state.history.append(("Mixtral-8x7B", response))
59
 
60
  # Display the conversation
61
- for user, text in st.session_state.history:
62
- st.text_area(label=user, value=text, height=100, key=text[:10])
 
 
 
58
  st.session_state.history.append(("Mixtral-8x7B", response))
59
 
60
  # Display the conversation
61
+ for index, (user, text) in enumerate(st.session_state.history):
62
+ # Create a unique key by combining the index with a portion of the text
63
+ unique_key = f"{index}_{text[:10]}"
64
+ st.text_area(label=user, value=text, height=100, key=unique_key)