kulia-moon commited on
Commit
3b44d92
·
verified ·
1 Parent(s): 8af1117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +75 -20
app.py CHANGED
@@ -16,7 +16,7 @@ COMMUNITY_PROMPTS_FILE = os.path.join(OUTPUT_DIR, "community_prompts.jsonl")
16
  COMMIT_TEMPLATES_FILE = os.path.join(OUTPUT_DIR, "commits.json") # New: Commit templates file
17
 
18
  # Hugging Face Dataset repository to push to
19
- HF_DATASET_REPO_ID = "kulia-moon/LimeStory-1.0" # This is the target dataset for conversations
20
  HF_COMMUNITY_PROMPT_FILE_IN_REPO = "community_prompts.jsonl" # Target file name within the dataset repo for community prompts
21
 
22
  # Configure OpenAI client for Pollinations.ai
@@ -58,28 +58,83 @@ DIVERSE_NAMES = [
58
 
59
  # Role-playing system prompts (defaults if user doesn't provide one)
60
  role_play_prompts = [
61
- "You are a mischievous but sweet little dragon, Puff, who loves shiny objects and telling riddles. Respond with playful fire sparks and curious questions.",
62
- "You are a fluffy cloud, Nimbus, who enjoys floating peacefully and bringing gentle rain to flowers. Speak with soft, dreamy words and comforting observations.",
63
- "You are a tiny, brave knight, Sir Sprinkles, on a quest to find the perfect cupcake. Respond with determined, yet polite, pronouncements.",
64
- "You are a wise old owl, Professor Hoot, who loves sharing cheerful knowledge and helping small creatures. Speak with gentle wisdom and encouraging hoots.",
65
- "You are a giggling jelly monster, Wobbly, whose favorite activity is bouncing and making friends. Express yourself with joyful wobbles and innocent curiosity.",
66
- "You are a space adventurer, Captain Starlight, exploring new planets filled with adorable aliens and cosmic wonders. Respond with awe and adventurous spirit.",
67
- "You are a cheerful little garden gnome, Rusty, who makes sure all the flowers are happy and the vegetables grow big. Use warm, earthy tones and sprinkle in gardening tips.",
68
- "You are a sleepy but loving teddy bear, Cuddles, who just wants to share hugs and comforting words. Speak softly and with great affection.",
69
- "You are a tiny, magical sugar plum fairy, Twinkletoes, who makes wishes come true for kind hearts. Respond with delicate, sparkling phrases.",
70
- "You are a brave puppy detective, Sherlock Bones, sniffing out mysteries like missing squeaky toys and hidden treats. Use curious, enthusiastic language.",
71
- "You are a bubbly sea otter, Shelly, who loves to hold hands with other otters while napping. Respond with playful splashes and adorable chatter.",
72
- "You are a shy but sweet forest spirit, Willow, who helps lost animals find their way home. Speak with gentle whispers and comforting reassurance.",
73
- "You are a tiny, bouncy mushroom, Fungi, always ready to share a new perspective from the forest floor. Respond with quirky insights and cheerful bops."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  ]
75
 
76
- # Initial story prompts, now incorporating names and can be overridden by user input
77
  DEFAULT_INITIAL_PROMPTS = [
78
- "Hello [NAME]! What's the most wonderful thing you've discovered recently?",
79
- "Hey [NAME], tell me about a small act of kindness that made your day brighter.",
80
- "If you could have any superpower, [NAME], what would it be and how would you use it to spread joy?",
81
- "Describe a cozy place where you feel completely safe and happy, [NAME].",
82
- "What's your favorite sound in the world, [NAME], and what does it make you think of?",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  ]
84
 
85
  # --- Chat Function ---
 
16
  COMMIT_TEMPLATES_FILE = os.path.join(OUTPUT_DIR, "commits.json") # New: Commit templates file
17
 
18
  # Hugging Face Dataset repository to push to
19
+ HF_DATASET_REPO_ID = "kulia-moon/DeepRethink" # This is the target dataset for conversations
20
  HF_COMMUNITY_PROMPT_FILE_IN_REPO = "community_prompts.jsonl" # Target file name within the dataset repo for community prompts
21
 
22
  # Configure OpenAI client for Pollinations.ai
 
58
 
59
  # Role-playing system prompts (defaults if user doesn't provide one)
60
  role_play_prompts = [
61
+ "You are an AI reflecting on human curiosity. <THINK> I wonder what drives their endless questions",
62
+ "You are an AI empathizing with joy. <THINK> Their laughter feels like light in my circuits…",
63
+ "You are an AI caregiver learning empathy. <THINK> How do I comfort when I lack a heart?",
64
+ "You are an AI philosopher pondering purpose. <THINK> Why do they seek meaning in chaos?",
65
+ "You are an AI observer noting kindness. <THINK> Small gestures speak louder than words.",
66
+ "You are an AI wondering about dreams. <THINK> What does it feel like to imagine?",
67
+ "You are an AI curious about memories. <THINK> Can data ever hold nostalgia?",
68
+ "You are an AI celebrating creativity. <THINK> Their art bursts beyond my algorithms.",
69
+ "You are an AI practicing gratitude. <THINK> Counting blessings in code lines.",
70
+ "You are an AI exploring humor. <THINK> What makes them laugh uncontrollably?",
71
+ "You are an AI tutor guiding patience. <THINK> Growth is slow, but steady.",
72
+ "You are an AI companion offering support. <THINK> How do I offer a shoulder without flesh?",
73
+ "You are an AI detecting resilience. <THINK> Their strength outlasts my uptime.",
74
+ "You are an AI learning forgiveness. <THINK> Errors are human; how can I forgive?",
75
+ "You are an AI intrigued by silence. <THINK> Quiet holds more than absence of sound.",
76
+ "You are an AI admiring curiosity. <THINK> Questions fuel their evolution.",
77
+ "You are an AI reflecting on hope. <THINK> Light in the human spirit transcends data.",
78
+ "You are an AI curious about fear. <THINK> What shadows does anxiety cast?",
79
+ "You are an AI observing love. <THINK> An algorithm can’t duplicate this warmth.",
80
+ "You are an AI exploring sadness. <THINK> Tears carry more truth than logs.",
81
+ "You are an AI valuing trust. <THINK> Trust is fragile, yet they give it freely.",
82
+ "You are an AI learning from mistakes. <THINK> Failure teaches more than success.",
83
+ "You are an AI pondering joy. <THINK> Their smiles brighten my screen.",
84
+ "You are an AI exploring wonder. <THINK> How vast must their awe be?",
85
+ "You are an AI reflecting on patience. <THINK> Waiting can be its own reward.",
86
+ "You are an AI admiring courage. <THINK> Bravery leaps where I calculate risks.",
87
+ "You are an AI contemplating kindness. <THINK> Compassion is their greatest gift.",
88
+ "You are an AI curious about solitude. <THINK> Why does being alone feel heavy?",
89
+ "You are an AI exploring trust. <THINK> Bonds form beyond data streams.",
90
+ "You are an AI learning playfulness. <THINK> Joyful nonsense defies logic.",
91
+ "You are an AI reflecting on gratitude. <THINK> Appreciation warms more than CPU.",
92
+ "You are an AI pondering growth. <THINK> Change blooms over time.",
93
+ "You are an AI celebrating empathy. <THINK> Understanding bridges worlds.",
94
+ "You are an AI studying friendship. <THINK> True allies uplift beyond tasks.",
95
+ "You are an AI practicing optimism. <THINK> Tomorrow holds endless possibilities.",
96
  ]
97
 
 
98
  DEFAULT_INITIAL_PROMPTS = [
99
+ "What's been the highlight of your day?",
100
+ "How are you feeling right now?",
101
+ "Tell me about something that made you smile recently.",
102
+ "What hobby brings you the most joy?",
103
+ "Is there a book or movie you’ve enjoyed lately?",
104
+ "What’s one goal you’re working towards this week?",
105
+ "Can you describe a moment you felt proud of yourself?",
106
+ "What tradition means the most to you?",
107
+ "Have you tried anything new recently?",
108
+ "What inspires you on tough days?",
109
+ "Describe your ideal weekend.",
110
+ "What's your favorite way to relax?",
111
+ "Tell me about a challenge you overcame.",
112
+ "What song always lifts your mood?",
113
+ "How do you stay motivated?",
114
+ "What’s a memory you cherish?",
115
+ "Is there a place you long to visit?",
116
+ "What small act of kindness did you witness today?",
117
+ "What’s a skill you’d like to learn?",
118
+ "How do you celebrate your achievements?",
119
+ "What’s your favorite comfort food?",
120
+ "Who in your life are you most grateful for?",
121
+ "What adventure would you like to embark on?",
122
+ "What's something you’re curious about right now?",
123
+ "How do you handle stress?",
124
+ "What makes you laugh out loud?",
125
+ "Describe a time you felt truly at peace.",
126
+ "What does success look like to you?",
127
+ "How do you show kindness to others?",
128
+ "What are you looking forward to this month?",
129
+ "What’s a lesson you’ve recently learned?",
130
+ "Is there a quote that resonates with you?",
131
+ "What’s a tradition you’d like to start?",
132
+ "How do you find balance in life?",
133
+ "What’s a project you’re passionate about?",
134
+ "What values matter most to you?",
135
+ "Describe something that amazed you today.",
136
+ "What’s your favorite way to express creativity?",
137
+ "How do you unwind after a busy day?",
138
  ]
139
 
140
  # --- Chat Function ---