Spaces:
Runtime error
Runtime error
Update pages/4_Mixtral.py
Browse files- 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 |
-
|
|
|
|
|
|
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)
|