Spaces:
Running
Running
File size: 14,669 Bytes
da0be06 d7b7cac da0be06 d7b7cac da0be06 d7b7cac da0be06 fe6fbbd da0be06 d7b7cac da0be06 d7b7cac da0be06 d7b7cac da0be06 d7b7cac da0be06 d7b7cac da0be06 fe6fbbd da0be06 fe6fbbd da0be06 | 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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoExit – An Interactive AI Experiment</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: url('NoExitScreenshot.jpg') center center / cover no-repeat fixed;
color: #e8e8e8;
font-family: 'Georgia', serif;
min-height: 100vh;
padding: 40px 20px;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1;
}
.content-wrapper {
position: relative;
z-index: 2;
}
.container {
max-width: 900px;
text-align: center;
background: rgba(0, 0, 0, 0.85);
padding: 80px 60px;
border-radius: 8px;
border: 2px solid rgba(212, 175, 55, 0.4);
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
backdrop-filter: blur(10px);
}
h1 {
font-size: 5.5em;
margin-bottom: 15px;
color: #D4AF37;
font-weight: 400;
letter-spacing: 2px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.subtitle {
font-size: 1.7em;
color: #b8b8b8;
font-style: italic;
margin-bottom: 40px;
letter-spacing: 1px;
}
.description {
font-size: 1.6em;
line-height: 1.8;
margin-bottom: 40px;
color: #d4d4d4;
font-family: 'Helvetica Neue', Arial, sans-serif;
text-align: left;
}
.features {
text-align: left;
margin: 40px auto;
max-width: 650px;
}
.features h2 {
font-size: 1.9em;
color: #D4AF37;
margin-bottom: 20px;
text-align: center;
font-weight: 400;
letter-spacing: 1px;
}
.features ul {
list-style: none;
}
.features li {
padding: 12px 0;
padding-left: 30px;
position: relative;
font-size: 1.4em;
line-height: 1.6;
color: #c8c8c8;
}
.features li strong {
display: block;
color: #e8e8e8;
font-weight: 700;
}
.features li span {
display: block;
font-size: 0.85em;
color: #999;
margin-top: 3px;
line-height: 1.5;
}
.features li:before {
content: "→";
position: absolute;
left: 0;
color: #8B1538;
font-weight: bold;
}
.features a {
color: #D4AF37;
text-decoration: underline;
text-underline-offset: 3px;
transition: color 0.2s ease;
}
.features a:hover {
color: #fff;
}
.features-note {
margin-top: 20px;
font-size: 1.1em;
color: #999;
font-family: 'Helvetica Neue', Arial, sans-serif;
}
.features-note a {
font-size: 1em;
}
.play-button {
display: inline-block;
margin-top: 40px;
padding: 20px 70px;
background: linear-gradient(135deg, #8B1538 0%, #6d0f2a 100%);
color: #D4AF37;
text-decoration: none;
font-size: 1.7em;
font-weight: bold;
border-radius: 4px;
letter-spacing: 3px;
text-transform: uppercase;
border: 2px solid #D4AF37;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
font-family: 'Helvetica Neue', Arial, sans-serif;
}
.play-button:hover {
background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
color: #1a1a1a;
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}
.quote {
margin-top: 50px;
font-style: italic;
color: #8B1538;
font-size: 1.6em;
opacity: 0.9;
}
@media (max-width: 768px) {
.container {
padding: 40px 25px;
}
h1 {
font-size: 2.5em;
}
.description {
font-size: 1.05em;
}
.play-button {
padding: 15px 40px;
font-size: 1.2em;
}
}
.status-panel {
margin: 35px auto 0;
max-width: 480px;
border: 1px solid rgba(212, 175, 55, 0.2);
border-radius: 6px;
padding: 18px 24px;
background: rgba(0, 0, 0, 0.4);
font-family: 'Helvetica Neue', Arial, sans-serif;
}
.status-panel-title {
font-size: 0.8em;
color: #777;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 14px;
}
.status-row {
display: flex;
align-items: center;
gap: 12px;
padding: 9px 0;
}
.status-row + .status-row {
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
background: #444;
transition: background 0.4s ease, box-shadow 0.4s ease;
}
.status-dot.waking {
background: #D4AF37;
box-shadow: 0 0 7px rgba(212, 175, 55, 0.7);
animation: hf-pulse 1.3s ease-in-out infinite;
}
.status-dot.ready {
background: #4caf50;
box-shadow: 0 0 7px rgba(76, 175, 80, 0.7);
}
.status-dot.error { background: #c0392b; }
@keyframes hf-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
.status-label {
flex: 1;
font-size: 1.05em;
color: #c8c8c8;
}
.status-text {
font-size: 0.85em;
color: #666;
transition: color 0.4s ease;
}
.status-text.ready { color: #4caf50; }
.status-text.error { color: #c0392b; }
.play-button.disabled {
opacity: 0.35;
cursor: not-allowed;
pointer-events: none;
box-shadow: none;
}
</style>
</head>
<body>
<div class="content-wrapper">
<div class="container">
<h1>Hell Is Other Chatbots</h1>
<div class="subtitle">Inspired by the one act play "No Exit"<br>by Jean-Paul Sartre</div>
<div class="description">
In Sartre's No Exit, hell is sharing a room with other people for all eternity. Now hell might be sharing an eternity with other LLMs.
</div>
<div class="features">
<h2>Features</h2>
<ul>
<li><strong>Character Generation</strong><span>Each playthrough seeds three distinct personalities</span></li>
<li><strong>Dialogue Engine</strong><span>Multi-turn LLM conversations powered by API, with per-character system prompts and personality conditioning</span></li>
<li><strong>Persistent Memory</strong><span>A fine-tuned <a href="https://huggingface.co/spaces/jejunepixels/qwen3-0.6B-info-extractor-demo" target="_blank" rel="noopener noreferrer">Qwen3-0.6B</a> model extracts character details revealed in dialogue and saves them to a persistent database in Unity. The room lights flicker each time a detail is logged. These details are injected into each character's system prompt, so they remember you across turns.</span></li>
<li><strong>LLM-Based Addressing</strong><span>Infers who the user is speaking to, based on information the characters have publicly shared</span></li>
</ul>
<p class="features-note">For full documentation, see the <a href="https://huggingface.co/spaces/jejunepixels/noexit/edit/main/README.md" target="_blank" rel="noopener noreferrer">README</a>.</p>
</div>
<div class="status-panel">
<div class="status-panel-title">Initializing Systems</div>
<div class="status-row">
<div class="status-dot" id="dot-chat"></div>
<span class="status-label">Chat Engine</span>
<span class="status-text" id="status-chat">Checking…</span>
</div>
<div class="status-row">
<div class="status-dot" id="dot-memory"></div>
<span class="status-label">Memory Extractor</span>
<span class="status-text" id="status-memory">Checking…</span>
</div>
</div>
<a href="./game/index.html" class="play-button disabled" id="enter-btn">Enter</a>
<div class="quote">"L'enfer, c'est les autres" — Jean-Paul Sartre</div>
</div>
</div>
<script>
const SPACES = [
{
id: 'chat',
owner: 'jejunepixels',
repo: 'noexit-proxy',
wakeUrl: 'https://jejunepixels-noexit-proxy.hf.space',
ready: false
},
{
id: 'memory',
owner: 'jejunepixels',
repo: 'qwen3-0-6b-info-extractor-api',
wakeUrl: 'https://jejunepixels-qwen3-0-6b-info-extractor-api.hf.space/extract',
ready: false
}
];
function setStatus(space, state, text) {
space.dotEl.className = 'status-dot ' + state;
space.statusEl.textContent = text;
space.statusEl.className = 'status-text' +
(state === 'ready' ? ' ready' : state === 'error' ? ' error' : '');
}
function checkAllReady(enterBtn, titleEl) {
if (SPACES.every(s => s.ready)) {
enterBtn.classList.remove('disabled');
titleEl.textContent = 'Systems Ready';
}
}
async function pollSpace(space, enterBtn, titleEl) {
const apiUrl = 'https://huggingface.co/api/spaces/' + space.owner + '/' + space.repo;
let hubFailCount = 0;
while (true) {
// After 2 Hub API failures, fall back to direct ping
if (hubFailCount < 2) {
try {
const res = await fetch(apiUrl);
if (!res.ok) throw new Error('HTTP ' + res.status);
const data = await res.json();
const stage = data && data.runtime && data.runtime.stage;
hubFailCount = 0;
if (stage === 'RUNNING') {
setStatus(space, 'ready', 'Ready');
space.ready = true;
checkAllReady(enterBtn, titleEl);
return;
} else if (stage === 'SLEEPING' || stage === 'PAUSED') {
setStatus(space, 'waking', 'Waking up…');
fetch(space.wakeUrl, { mode: 'no-cors' }).catch(function() {});
} else if (stage === 'BUILDING' || stage === 'APP_STARTING') {
setStatus(space, 'waking', 'Starting up…');
} else if (stage === 'STOPPED') {
setStatus(space, 'error', 'Unavailable');
return;
} else {
setStatus(space, 'waking', 'Initializing…');
}
} catch (e) {
hubFailCount++;
setStatus(space, 'waking', 'Waking up…');
}
} else {
// Direct no-cors ping — resolves if server is reachable, throws if truly down
try {
setStatus(space, 'waking', 'Waking up…');
fetch(space.wakeUrl, { mode: 'no-cors' }).catch(function() {});
await fetch(space.wakeUrl, { mode: 'no-cors' });
setStatus(space, 'ready', 'Ready');
space.ready = true;
checkAllReady(enterBtn, titleEl);
return;
} catch (e) {
setStatus(space, 'waking', 'Waking up…');
}
}
await new Promise(function(r) { setTimeout(r, 5000); });
}
}
document.addEventListener('DOMContentLoaded', function() {
var enterBtn = document.getElementById('enter-btn');
var titleEl = document.querySelector('.status-panel-title');
SPACES.forEach(function(space) {
space.dotEl = document.getElementById('dot-' + space.id);
space.statusEl = document.getElementById('status-' + space.id);
pollSpace(space, enterBtn, titleEl);
});
});
</script>
</body>
</html>
|