Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,6 @@
|
|
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
# Set the page configuration to use the full width of the screen
|
4 |
st.set_page_config(layout="wide")
|
@@ -139,32 +141,24 @@ def display_superhero_stories():
|
|
139 |
# Run the Streamlit UI function
|
140 |
display_superhero_stories()
|
141 |
|
|
|
|
|
|
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
"9οΈβ£ Extraordinary Disability Support Letters": EDSL,
|
157 |
-
"π Amazing Health Education Letters": AHEL
|
158 |
-
}
|
159 |
-
|
160 |
-
# Create buttons for each letter type
|
161 |
-
for letter_type, section in letter_types.items():
|
162 |
-
if st.button(letter_type):
|
163 |
-
# Display the selected section of the markdown content
|
164 |
-
st.markdown(section, unsafe_allow_html=True)
|
165 |
|
166 |
-
# Run the Streamlit UI function
|
167 |
-
generate_letter_menu_ui()
|
168 |
|
169 |
|
170 |
st.markdown(GALMIO)
|
|
|
1 |
+
|
2 |
import streamlit as st
|
3 |
+
import random
|
4 |
|
5 |
# Set the page configuration to use the full width of the screen
|
6 |
st.set_page_config(layout="wide")
|
|
|
141 |
# Run the Streamlit UI function
|
142 |
display_superhero_stories()
|
143 |
|
144 |
+
def random_emoji_slot_machine():
|
145 |
+
st.title("π° Emoji Slot Machine")
|
146 |
+
st.write("Welcome to the Emoji Slot Machine! Press the button below to spin and try your luck!")
|
147 |
|
148 |
+
emojis = [
|
149 |
+
"π", "π", "π€", "π½", "πΆ", "π¦", "π", "π", "π", "π"
|
150 |
+
]
|
151 |
+
|
152 |
+
if st.button("Spin"):
|
153 |
+
for _ in range(3):
|
154 |
+
spin_result = []
|
155 |
+
for _ in range(9):
|
156 |
+
spin_result.append(random.choice(emojis))
|
157 |
+
st.write(" ".join(spin_result))
|
158 |
+
|
159 |
+
# Run the Emoji Slot Machine game function
|
160 |
+
random_emoji_slot_machine()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
|
|
|
|
|
162 |
|
163 |
|
164 |
st.markdown(GALMIO)
|