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