Spaces:
Sleeping
Sleeping
Create app.py
Browse filespoems it is me
app.py
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import emoji
|
2 |
+
|
3 |
+
poem = """
|
4 |
+
In the land of code where the streamlit gleams,
|
5 |
+
A tale of an inbox, a place for dreams.
|
6 |
+
Messages fluttered like leaves on the wind,
|
7 |
+
Replying with wisdom, friendships begin.
|
8 |
+
|
9 |
+
In this digital haven, hearts intertwined,
|
10 |
+
Through lines of poetry, secrets unwind.
|
11 |
+
In the realm of streamlit, love's code is designed.
|
12 |
+
"""
|
13 |
+
|
14 |
+
emojis_to_use = {
|
15 |
+
'code': ':computer:',
|
16 |
+
'streamlit': ':sparkles:',
|
17 |
+
'inbox': ':inbox_tray:',
|
18 |
+
'dreams': ':cloud:',
|
19 |
+
'messages': ':email:',
|
20 |
+
'wind': ':dash:',
|
21 |
+
'wisdom': ':owl:',
|
22 |
+
'friendships': ':people_holding_hands:',
|
23 |
+
'digital': ':satellite:',
|
24 |
+
'hearts': ':heartpulse:',
|
25 |
+
'poetry': ':scroll:',
|
26 |
+
'secrets': ':key:',
|
27 |
+
'love': ':heart:'
|
28 |
+
}
|
29 |
+
|
30 |
+
for word, emoji_code in emojis_to_use.items():
|
31 |
+
poem = poem.replace(word, emoji.emojize(emoji_code, use_aliases=True))
|
32 |
+
|
33 |
+
print(poem)
|