Ghmustafa11 commited on
Commit
f115a67
Β·
verified Β·
1 Parent(s): 5f5b765

Update Text-to-Emoji Converter.py

Browse files
Files changed (1) hide show
  1. Text-to-Emoji Converter.py +5 -5
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("<h1 style='text-align: center; font-size: 80px;'>πŸŽ‰</h1>", 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
38
  if user_input:
39
  output = text_to_emoji(user_input)
40
- st.write("### Emoji-fied Text:")
41
- st.write(output)
42
- st.markdown("<h2 style='text-align: center; font-size: 60px;'>✨🌟 Enjoy! 🌟✨</h2>", 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).")
 
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).")