Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,6 +97,7 @@ config = {"configurable": {"thread_id": str(uuid.uuid4())}}
|
|
97 |
|
98 |
# Streamlit app layout
|
99 |
st.title("LangChain Chat")
|
|
|
100 |
|
101 |
# Initialise session state variables
|
102 |
if 'generated' not in st.session_state:
|
@@ -105,7 +106,7 @@ if 'past' not in st.session_state:
|
|
105 |
st.session_state['past'] = []
|
106 |
if 'messages' not in st.session_state:
|
107 |
st.session_state['messages'] = [
|
108 |
-
{"role": "system", "content": "
|
109 |
]
|
110 |
|
111 |
|
|
|
97 |
|
98 |
# Streamlit app layout
|
99 |
st.title("LangChain Chat")
|
100 |
+
clear_button = st.sidebar.button("Clear Conversation", key="clear")
|
101 |
|
102 |
# Initialise session state variables
|
103 |
if 'generated' not in st.session_state:
|
|
|
106 |
st.session_state['past'] = []
|
107 |
if 'messages' not in st.session_state:
|
108 |
st.session_state['messages'] = [
|
109 |
+
{"role": "system", "content": "Get the relevant info from the user"}
|
110 |
]
|
111 |
|
112 |
|