awacke1's picture
Create app.py
e18cef3
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}")