Spaces:
Sleeping
Sleeping
change position clear button
Browse files
app.py
CHANGED
@@ -285,11 +285,11 @@ def main():
|
|
285 |
#url_reg = regex_source(url)
|
286 |
st.write(str(count+1)+":", url)
|
287 |
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
|
294 |
if __name__ == '__main__':
|
295 |
main()
|
|
|
285 |
#url_reg = regex_source(url)
|
286 |
st.write(str(count+1)+":", url)
|
287 |
|
288 |
+
clear_button = st.button("Start new convo")
|
289 |
+
if clear_button :
|
290 |
+
st.session_state.messages = []
|
291 |
+
qa_chain.memory.chat_memory.clear()
|
292 |
+
|
293 |
|
294 |
if __name__ == '__main__':
|
295 |
main()
|