File size: 1,258 Bytes
e18cef3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import streamlit as st
import random

# Define list of emojis and prompts
emoji_list = ["😊", "🤔", "😄", "😎", "👀", "🧠", "💡", "📚"]
prompts_list = [
    "Use 'You' talking to AI in first person.",
    "Pick 3-4 things you would instruct or coach on about proficiency.",
    "Describe the opportunity - I am giving you a chance to __ fix -- X --",
    "Pick your X"
]

# Define list of mental functions that change with age
mental_functions = [
    "Long Term Memory (LTM)",
    "Working Memory",
    "Executive Functioning",
    "Attention to Detail",
    "Multitasking",
    "Processing Speed"
]

st.title("Emoji & Prompt Generator 🧠")

# Text areas to display the outputs
st.write("## Generated Emoji:")
emoji_output = st.empty()
st.write("## Generated Prompt:")
prompt_output = st.empty()

# Loop through each mental function and create a button
for function in mental_functions:
    if st.button(f"Generate for {function}"):
        # Randomly pick an emoji and a prompt
        selected_emoji = random.choice(emoji_list)
        selected_prompt = random.choice(prompts_list)
        
        # Display the selected emoji and prompt
        emoji_output.write(f"{selected_emoji}")
        prompt_output.write(f"{selected_prompt}")