Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import random
|
3 |
+
|
4 |
+
# Define list of emojis and prompts
|
5 |
+
emoji_list = ["😊", "🤔", "😄", "😎", "👀", "🧠", "💡", "📚"]
|
6 |
+
prompts_list = [
|
7 |
+
"Use 'You' talking to AI in first person.",
|
8 |
+
"Pick 3-4 things you would instruct or coach on about proficiency.",
|
9 |
+
"Describe the opportunity - I am giving you a chance to __ fix -- X --",
|
10 |
+
"Pick your X"
|
11 |
+
]
|
12 |
+
|
13 |
+
# Define list of mental functions that change with age
|
14 |
+
mental_functions = [
|
15 |
+
"Long Term Memory (LTM)",
|
16 |
+
"Working Memory",
|
17 |
+
"Executive Functioning",
|
18 |
+
"Attention to Detail",
|
19 |
+
"Multitasking",
|
20 |
+
"Processing Speed"
|
21 |
+
]
|
22 |
+
|
23 |
+
st.title("Emoji & Prompt Generator 🧠")
|
24 |
+
|
25 |
+
# Text areas to display the outputs
|
26 |
+
st.write("## Generated Emoji:")
|
27 |
+
emoji_output = st.empty()
|
28 |
+
st.write("## Generated Prompt:")
|
29 |
+
prompt_output = st.empty()
|
30 |
+
|
31 |
+
# Loop through each mental function and create a button
|
32 |
+
for function in mental_functions:
|
33 |
+
if st.button(f"Generate for {function}"):
|
34 |
+
# Randomly pick an emoji and a prompt
|
35 |
+
selected_emoji = random.choice(emoji_list)
|
36 |
+
selected_prompt = random.choice(prompts_list)
|
37 |
+
|
38 |
+
# Display the selected emoji and prompt
|
39 |
+
emoji_output.write(f"{selected_emoji}")
|
40 |
+
prompt_output.write(f"{selected_prompt}")
|