Spaces:
Sleeping
Sleeping
Add New Year's greetings
Browse files
app.py
CHANGED
|
@@ -189,6 +189,17 @@ def build_ui():
|
|
| 189 |
'' # noqa: E501
|
| 190 |
)
|
| 191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
with st.expander('Usage Policies and Limitations'):
|
| 193 |
st.text(APP_TEXT['tos'] + '\n\n' + APP_TEXT['tos2'])
|
| 194 |
|
|
|
|
| 189 |
'' # noqa: E501
|
| 190 |
)
|
| 191 |
|
| 192 |
+
today = datetime.date.today()
|
| 193 |
+
if today.month == 1 and 1 <= today.day <= 15:
|
| 194 |
+
st.success(
|
| 195 |
+
(
|
| 196 |
+
'Wishing you a happy and successful New Year!'
|
| 197 |
+
' It is your appreciation that keeps SlideDeck AI going.'
|
| 198 |
+
f' May you make some great slide decks in {today.year} ✨'
|
| 199 |
+
),
|
| 200 |
+
icon='🎆'
|
| 201 |
+
)
|
| 202 |
+
|
| 203 |
with st.expander('Usage Policies and Limitations'):
|
| 204 |
st.text(APP_TEXT['tos'] + '\n\n' + APP_TEXT['tos2'])
|
| 205 |
|