Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,19 @@ with st.sidebar:
|
|
57 |
st.success("Example: How to conduct an AI experiment?")
|
58 |
st.success("Example: Write a tensorflow flow code with a 3-layer neural network model.")
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
# Credit:
|
61 |
current_year = current_year() # This will print the current year
|
62 |
st.markdown(
|
@@ -66,11 +79,6 @@ with st.sidebar:
|
|
66 |
unsafe_allow_html=True,
|
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 |
|
75 |
# Initialize chat history
|
76 |
if "messages" not in st.session_state:
|
|
|
57 |
st.success("Example: How to conduct an AI experiment?")
|
58 |
st.success("Example: Write a tensorflow flow code with a 3-layer neural network model.")
|
59 |
|
60 |
+
# Add a button to clear the session state
|
61 |
+
if st.button("Clear Session"):
|
62 |
+
st.session_state.messages = []
|
63 |
+
st.experimental_rerun()
|
64 |
+
|
65 |
+
# Donation
|
66 |
+
stripe_payment_link = os.environ["STRIPE_PAYMENT_LINK"]
|
67 |
+
st.markdown(
|
68 |
+
f"""
|
69 |
+
Want to support me? 😄 Click here using this [link]({stripe_payment_link}).
|
70 |
+
"""
|
71 |
+
)
|
72 |
+
|
73 |
# Credit:
|
74 |
current_year = current_year() # This will print the current year
|
75 |
st.markdown(
|
|
|
79 |
unsafe_allow_html=True,
|
80 |
)
|
81 |
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
# Initialize chat history
|
84 |
if "messages" not in st.session_state:
|