Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,20 @@ with st.sidebar:
|
|
65 |
st.success("Example: What are some online links by Yiqiao I can read about?")
|
66 |
st.success("Example: What is Yiqiao's view on stock market?")
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
# Credit:
|
69 |
current_year = current_year() # This will print the current year
|
70 |
st.markdown(
|
@@ -74,13 +88,6 @@ with st.sidebar:
|
|
74 |
unsafe_allow_html=True,
|
75 |
)
|
76 |
|
77 |
-
|
78 |
-
# Add a button to clear the session state
|
79 |
-
if st.button("Clear Session"):
|
80 |
-
st.session_state.messages = []
|
81 |
-
st.experimental_rerun()
|
82 |
-
|
83 |
-
|
84 |
# Initialize chat history
|
85 |
if "messages" not in st.session_state:
|
86 |
st.session_state.messages = []
|
|
|
65 |
st.success("Example: What are some online links by Yiqiao I can read about?")
|
66 |
st.success("Example: What is Yiqiao's view on stock market?")
|
67 |
|
68 |
+
|
69 |
+
# Add a button to clear the session state
|
70 |
+
if st.button("Clear Session"):
|
71 |
+
st.session_state.messages = []
|
72 |
+
st.experimental_rerun()
|
73 |
+
|
74 |
+
# Donation
|
75 |
+
stripe_payment_link = os.environ["STRIPE_PAYMENT_LINK"]
|
76 |
+
st.markdown(
|
77 |
+
f"""
|
78 |
+
Want to support me? π Click here using this [link]({stripe_payment_link}).
|
79 |
+
"""
|
80 |
+
)
|
81 |
+
|
82 |
# Credit:
|
83 |
current_year = current_year() # This will print the current year
|
84 |
st.markdown(
|
|
|
88 |
unsafe_allow_html=True,
|
89 |
)
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
# Initialize chat history
|
92 |
if "messages" not in st.session_state:
|
93 |
st.session_state.messages = []
|