Spaces:
Sleeping
Sleeping
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) | |