Spaces:
Build error
Build error
Update Text-to-Emoji Converter.py
Browse files
Text-to-Emoji Converter.py
CHANGED
|
@@ -28,18 +28,18 @@ st.set_page_config(page_title="Emoji Magic", page_icon="β¨")
|
|
| 28 |
|
| 29 |
# Title and Big Emoji
|
| 30 |
st.title("Emoji Magic")
|
| 31 |
-
st.markdown("<
|
| 32 |
st.write("Turn your text into emoji-filled fun! Type below to transform your words into emojis. π")
|
| 33 |
|
| 34 |
# User input
|
| 35 |
user_input = st.text_input("Enter your text here:", placeholder="e.g., I am happy and love the sun!")
|
| 36 |
|
| 37 |
-
# Convert and display the result
|
| 38 |
if user_input:
|
| 39 |
output = text_to_emoji(user_input)
|
| 40 |
-
st.
|
| 41 |
-
st.
|
| 42 |
-
st.markdown("<
|
| 43 |
|
| 44 |
st.write("---")
|
| 45 |
st.write("Built with β€οΈ using [Streamlit](https://streamlit.io/) and hosted on [Hugging Face Spaces](https://huggingface.co/spaces).")
|
|
|
|
| 28 |
|
| 29 |
# Title and Big Emoji
|
| 30 |
st.title("Emoji Magic")
|
| 31 |
+
st.markdown("<div style='text-align: center; font-size: 100px;'>πβ¨π</div>", unsafe_allow_html=True)
|
| 32 |
st.write("Turn your text into emoji-filled fun! Type below to transform your words into emojis. π")
|
| 33 |
|
| 34 |
# User input
|
| 35 |
user_input = st.text_input("Enter your text here:", placeholder="e.g., I am happy and love the sun!")
|
| 36 |
|
| 37 |
+
# Convert and display the result with big emojis
|
| 38 |
if user_input:
|
| 39 |
output = text_to_emoji(user_input)
|
| 40 |
+
st.markdown("<h2 style='text-align: center;'>Your Emoji-fied Text:</h2>", unsafe_allow_html=True)
|
| 41 |
+
st.markdown(f"<div style='text-align: center; font-size: 70px;'>{output}</div>", unsafe_allow_html=True)
|
| 42 |
+
st.markdown("<div style='text-align: center; font-size: 60px;'>πβ¨ Enjoy! β¨π</div>", unsafe_allow_html=True)
|
| 43 |
|
| 44 |
st.write("---")
|
| 45 |
st.write("Built with β€οΈ using [Streamlit](https://streamlit.io/) and hosted on [Hugging Face Spaces](https://huggingface.co/spaces).")
|