awacke1 commited on
Commit
c259c2f
Β·
1 Parent(s): e6bde6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -24
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
- def generate_letter_menu_ui():
144
- st.markdown("""## Generative AI Letters for Managing Information Overload (GAL-MIO) - πŸ₯ Letter Type Selection""")
145
-
146
- # Define the letter types and their corresponding markdown sections
147
- letter_types = {
148
- "1️⃣ Fascinating Referral Letters": FRL,
149
- "2️⃣ Enchanted Medical Certificate Letters": EMCL,
150
- "3️⃣ Bewitching Prescription Letters": BPL,
151
- "4️⃣ Enigmatic Diagnosis Letters": EDL,
152
- "5️⃣ Fantastical Treatment Plan Letters": FTPL,
153
- "6️⃣ Magical Surgery Recommendation Letters": MSRL,
154
- "7️⃣ Miraculous Medical Clearance Letters": MMCL,
155
- "8️⃣ Astonishing Follow-up Appointment Letters": AFAL,
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)