Spaces:
Sleeping
Sleeping
[email protected]
commited on
Commit
·
ba9997b
1
Parent(s):
c3b4e7b
Remove history on changing dialogue
Browse files- pages/chatbot_afp.py +1 -0
- pages/chatbot_cettons.py +1 -0
- pages/chatbot_steel.py +1 -0
pages/chatbot_afp.py
CHANGED
@@ -94,6 +94,7 @@ def page():
|
|
94 |
st.subheader("Auto France Parts")
|
95 |
|
96 |
company_code = "afp_"
|
|
|
97 |
|
98 |
if "chat_history" not in st.session_state or len(st.session_state["chat_history"]) <= 2:
|
99 |
# print("Initialisation de l'historique")
|
|
|
94 |
st.subheader("Auto France Parts")
|
95 |
|
96 |
company_code = "afp_"
|
97 |
+
st.session_state["chat_history"] = []
|
98 |
|
99 |
if "chat_history" not in st.session_state or len(st.session_state["chat_history"]) <= 2:
|
100 |
# print("Initialisation de l'historique")
|
pages/chatbot_cettons.py
CHANGED
@@ -94,6 +94,7 @@ def page():
|
|
94 |
st.subheader("La Pyramide des Cettons")
|
95 |
|
96 |
company_code = "cettons_"
|
|
|
97 |
|
98 |
if "chat_history" not in st.session_state or len(st.session_state["chat_history"]) <= 2:
|
99 |
# print("Initialisation de l'historique")
|
|
|
94 |
st.subheader("La Pyramide des Cettons")
|
95 |
|
96 |
company_code = "cettons_"
|
97 |
+
st.session_state["chat_history"] = []
|
98 |
|
99 |
if "chat_history" not in st.session_state or len(st.session_state["chat_history"]) <= 2:
|
100 |
# print("Initialisation de l'historique")
|
pages/chatbot_steel.py
CHANGED
@@ -94,6 +94,7 @@ def page():
|
|
94 |
st.subheader("Steel France")
|
95 |
|
96 |
company_code = "steel_"
|
|
|
97 |
|
98 |
if "chat_history" not in st.session_state or len(st.session_state["chat_history"]) <= 2:
|
99 |
# print("Initialisation de l'historique")
|
|
|
94 |
st.subheader("Steel France")
|
95 |
|
96 |
company_code = "steel_"
|
97 |
+
st.session_state["chat_history"] = []
|
98 |
|
99 |
if "chat_history" not in st.session_state or len(st.session_state["chat_history"]) <= 2:
|
100 |
# print("Initialisation de l'historique")
|