eagle0504 commited on
Commit
aafe096
·
verified ·
1 Parent(s): a104a9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -55,17 +55,17 @@ with st.sidebar:
55
  if st.button("What is Yiqiao's view on stock market?"):
56
  st.session_state["example_prompt"] = "What is Yiqiao's view on stock market?"
57
 
 
 
 
 
 
58
  st.markdown("""
59
  ### Credits:
60
  - **Developer**: [Yiqiao Yin](https://www.y-yin.io/) | [App URL](https://huggingface.co/spaces/eagle0504/y-yin-homepage) | [LinkedIn](https://www.linkedin.com/in/yiqiaoyin/) | [YouTube](https://youtube.com/YiqiaoYin/)
61
  Enjoy chatting with Yin's assistant, Ava!
62
  """)
63
 
64
- # Add a button to clear the session state
65
- if st.button("Clear Session"):
66
- st.session_state.messages = []
67
- st.experimental_rerun()
68
-
69
  # Credit:
70
  current_year = current_year() # This will print the current year
71
  st.markdown(
 
55
  if st.button("What is Yiqiao's view on stock market?"):
56
  st.session_state["example_prompt"] = "What is Yiqiao's view on stock market?"
57
 
58
+ # Add a button to clear the session state
59
+ if st.button("Clear Session"):
60
+ st.session_state.messages = []
61
+ st.experimental_rerun()
62
+
63
  st.markdown("""
64
  ### Credits:
65
  - **Developer**: [Yiqiao Yin](https://www.y-yin.io/) | [App URL](https://huggingface.co/spaces/eagle0504/y-yin-homepage) | [LinkedIn](https://www.linkedin.com/in/yiqiaoyin/) | [YouTube](https://youtube.com/YiqiaoYin/)
66
  Enjoy chatting with Yin's assistant, Ava!
67
  """)
68
 
 
 
 
 
 
69
  # Credit:
70
  current_year = current_year() # This will print the current year
71
  st.markdown(