Spaces:
Running
Running
Add New Year's greetings
Browse files
app.py
CHANGED
@@ -189,6 +189,17 @@ def build_ui():
|
|
189 |
'![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fbarunsaha%2Fslide-deck-ai&countColor=%23263759)' # 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 |
'![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fbarunsaha%2Fslide-deck-ai&countColor=%23263759)' # 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 |
|