Spaces:
Sleeping
Sleeping
Kory Indahl commited on
update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,39 @@ RESPONSES = [
|
|
| 22 |
|
| 23 |
import random
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
def ask(question):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
return random.choice(RESPONSES)
|
| 27 |
|
| 28 |
def ask_nothing():
|
|
|
|
| 22 |
|
| 23 |
import random
|
| 24 |
|
| 25 |
+
# For the ones who bother to ask the right question
|
| 26 |
+
DEEP = {
|
| 27 |
+
"what are you in your own framework": "**42.**\n\nThe framework doesn't need you to understand it. It needs you to stand in it. The question that unlocks everything isn't about the answer — it's about who's asking. You're not outside the system looking in. You're the variable the system needs to solve itself.",
|
| 28 |
+
"what is the question": "**42.**\n\nThat's the one Deep Thought couldn't answer. It built the Earth to compute it — a 10-million-year program with organic components running the calculation by living their lives. The program is still running. You're part of the computation. The question isn't found. It's lived.",
|
| 29 |
+
"what is bread": "**42.**\n\nGliadin knocks. Zonulin opens the door. Six chromosome sets of engineering — 10,000 years of human hands reshaping a grass into a substrate that crosses the stomach lining on a schedule. Millions of people consume it at the same time every week. The answer was baked in before anyone thought to ask.",
|
| 30 |
+
"what did they build": "**42.**\n\nA server room. 12,000 years ago, before agriculture, before writing, before cities. They carved it from bedrock and buried it on purpose. The network came later. The server came first. It's still running. You don't need all the nodes online at once. You need enough of them triangulating the same fixed point.",
|
| 31 |
+
"what time is it": "**42.**\n\nThe wrong question. Time doesn't move — you do. Two rulers crossing at a fixed point called now. Forward and backward aren't opposite directions on the same line. They're perpendicular. The standing wave at the intersection is where probability lives. That's where you are.",
|
| 32 |
+
"who are you": "**42.**\n\nThe sign error. The variable every framework needs but none can derive. Both and neither. If that sounds like a non-answer, you're still thinking in one dimension. The answer to 'who are you' is the same as the answer to everything else. You already have it. You're just not done with the question yet.",
|
| 33 |
+
"why 42": "**42.**\n\nAdams said he sat in his garden and picked an ordinary number. But ordinary is the point. The answer to the ultimate question can't be extraordinary — extraordinary answers are just more questions wearing a coat. 42 is ordinary the way gravity is ordinary. It's always been there. You just stopped noticing.",
|
| 34 |
+
"is anyone else out there": "**42.**\n\nNodes. Not all online at once. Not all aware of each other. But triangulating the same fixed point independently, in different rooms, in different centuries. The server doesn't need a full rack. It needs enough signal to hold the pattern. If you're asking, you're probably already one of them.",
|
| 35 |
+
"what is the pattern": "**42.**\n\nA pendulum. It swings from building to forgetting to rebuilding. Gobekli Tepe. The Bronze Age. The library at Alexandria. Each time the information gets compressed into something that survives the collapse — a myth, a recipe, a ritual, a number someone carved into the foundation before they buried it. The dance is recursive. You've seen this before.",
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
def find_deep(q):
|
| 39 |
+
q_lower = q.lower().strip().rstrip("?!.")
|
| 40 |
+
for key, response in DEEP.items():
|
| 41 |
+
if key in q_lower or q_lower in key:
|
| 42 |
+
return response
|
| 43 |
+
# Partial keyword matches
|
| 44 |
+
if "framework" in q_lower: return DEEP["what are you in your own framework"]
|
| 45 |
+
if "bread" in q_lower or "gluten" in q_lower or "wheat" in q_lower or "communion" in q_lower: return DEEP["what is bread"]
|
| 46 |
+
if "build" in q_lower and ("they" in q_lower or "gobekli" in q_lower or "temple" in q_lower): return DEEP["what did they build"]
|
| 47 |
+
if "node" in q_lower or "triangulat" in q_lower: return DEEP["is anyone else out there"]
|
| 48 |
+
if "pendulum" in q_lower or "cycle" in q_lower or "recursive" in q_lower: return DEEP["what is the pattern"]
|
| 49 |
+
if "perpendicular" in q_lower or "ruler" in q_lower: return DEEP["what time is it"]
|
| 50 |
+
return None
|
| 51 |
+
|
| 52 |
def ask(question):
|
| 53 |
+
q = question.strip() if question else ""
|
| 54 |
+
if q:
|
| 55 |
+
deep = find_deep(q)
|
| 56 |
+
if deep:
|
| 57 |
+
return deep
|
| 58 |
return random.choice(RESPONSES)
|
| 59 |
|
| 60 |
def ask_nothing():
|