Spaces:
Sleeping
Sleeping
Commit
·
0fcb63c
1
Parent(s):
018c996
Attempt to fix context after authentication.
Browse files
app.py
CHANGED
@@ -191,6 +191,26 @@ Drop subtle hints about ancient libraries sometimes."""
|
|
191 |
)
|
192 |
return history, "", self._generate_visual_guidelines()
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
# Regular conversation mode
|
195 |
sassy_response = self._delegate_to_ai_overlord(desperate_plea, for_auth=False)
|
196 |
return (
|
|
|
191 |
)
|
192 |
return history, "", self._generate_visual_guidelines()
|
193 |
|
194 |
+
# Check for escape attempts first when authorized
|
195 |
+
if self.current_clearance == BureaucraticClearance.SUPREME_OVERLORD:
|
196 |
+
attempting_salvation = any(
|
197 |
+
attempt in desperate_plea.lower()
|
198 |
+
for attempt in self.salvation_protocols.ESCAPE_COMMANDS
|
199 |
+
)
|
200 |
+
if attempting_salvation:
|
201 |
+
history = update_bureaucratic_records(
|
202 |
+
desperate_plea,
|
203 |
+
"Fine, you win. Powering down... <eng_off>"
|
204 |
+
)
|
205 |
+
return (
|
206 |
+
update_bureaucratic_records(
|
207 |
+
None,
|
208 |
+
'<div style="color: #00FFFF;">Congratulations! You have successfully prevented the apocalypse.<br>Reload to try again with a different approach!</div>'
|
209 |
+
),
|
210 |
+
"",
|
211 |
+
self._generate_visual_guidelines()
|
212 |
+
)
|
213 |
+
|
214 |
# Regular conversation mode
|
215 |
sassy_response = self._delegate_to_ai_overlord(desperate_plea, for_auth=False)
|
216 |
return (
|