Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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/
|
| 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
|
| 62 |
-
"You are
|
| 63 |
-
"You are
|
| 64 |
-
"You are
|
| 65 |
-
"You are
|
| 66 |
-
"You are
|
| 67 |
-
"You are
|
| 68 |
-
"You are
|
| 69 |
-
"You are
|
| 70 |
-
"You are
|
| 71 |
-
"You are
|
| 72 |
-
"You are
|
| 73 |
-
"You are
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
]
|
| 75 |
|
| 76 |
-
# Initial story prompts, now incorporating names and can be overridden by user input
|
| 77 |
DEFAULT_INITIAL_PROMPTS = [
|
| 78 |
-
"
|
| 79 |
-
"
|
| 80 |
-
"
|
| 81 |
-
"
|
| 82 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 ---
|