Spaces:
Runtime error
Runtime error
File size: 792 Bytes
f669c37 |
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 |
import streamlit as st
# Set the title of the app
st.title("Mystery Emoji Translator")
# Define the emoji meanings as a dictionary
emoji_meanings = {
"π": "Magnifying Glass",
"π΅οΈββοΈ": "Detective (Female)",
"π΅οΈββοΈ": "Detective (Male)",
"π€": "Thinking Face",
"β": "Question Mark",
"β": "White Question Mark"
}
# Define the sidebar title and text
st.sidebar.title("About")
st.sidebar.write("This app translates mystery emojis into their meanings.")
# Add a selectbox to the sidebar with the available emojis
selected_emoji = st.sidebar.selectbox("Select an emoji", list(emoji_meanings.keys()))
# Display the selected emoji and its meaning
st.write("You selected:", selected_emoji)
st.write("Meaning:", emoji_meanings[selected_emoji])
|