awacke1 commited on
Commit
f669c37
β€’
1 Parent(s): 85c3fbb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Set the title of the app
4
+ st.title("Mystery Emoji Translator")
5
+
6
+ # Define the emoji meanings as a dictionary
7
+ emoji_meanings = {
8
+ "πŸ”": "Magnifying Glass",
9
+ "πŸ•΅οΈβ€β™€οΈ": "Detective (Female)",
10
+ "πŸ•΅οΈβ€β™‚οΈ": "Detective (Male)",
11
+ "πŸ€”": "Thinking Face",
12
+ "❓": "Question Mark",
13
+ "❔": "White Question Mark"
14
+ }
15
+
16
+ # Define the sidebar title and text
17
+ st.sidebar.title("About")
18
+ st.sidebar.write("This app translates mystery emojis into their meanings.")
19
+
20
+ # Add a selectbox to the sidebar with the available emojis
21
+ selected_emoji = st.sidebar.selectbox("Select an emoji", list(emoji_meanings.keys()))
22
+
23
+ # Display the selected emoji and its meaning
24
+ st.write("You selected:", selected_emoji)
25
+ st.write("Meaning:", emoji_meanings[selected_emoji])