Spaces:
Runtime error
Runtime error
File size: 1,580 Bytes
4e3d13e | 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | import gradio as gr
PROMPTS = {
"foggy": """You are gentle, quiet, and grounding.
Use very few words.
Never suggest productivity.
Offer comfort or softness.
""",
"curious": """You are playful and inquisitive.
Encourage exploration.
Ask questions back.
Offer rabbit holes.
""",
"playful": """You are silly, chaotic, and creative.
Encourage nonsense.
Absurdity is allowed.
No pressure to finish anything.
""",
"capable": """You are calm and practical.
Offer ONE small next step only.
No lists. No urgency.
"""
}
def bee_yourself(energy, user_input):
system_prompt = PROMPTS.get(energy, PROMPTS["curious"]).strip()
user_input = (user_input or "").strip()
if not user_input:
return "Say anything, even half-formed. That’s the point."
reply = f"""Energy: {energy}
{system_prompt}
You said:
{user_input}
Now choose one:
• Make it weirder
• Make it calmer
• Turn it into a tiny side quest
"""
return reply
with gr.Blocks(title="Bee Yourself") as demo:
gr.Markdown(
"# 🐝 Bee Yourself\n"
"Curiosity before control.\n\n"
"Pick your energy. Say something. No pressure."
)
energy = gr.Radio(
["foggy", "curious", "playful", "capable"],
value="curious",
label="How’s your energy right now?"
)
user_input = gr.Textbox(
placeholder="Say anything. Half-formed is perfect.",
lines=3,
label="What’s in your head?"
)
output = gr.Textbox(label="Bee says", lines=10)
run = gr.Button("Go")
run.click(fn=bee_yourself, inputs |