Deploy Brain Lab CPU classroom app with verified saved research playback
Browse files- .gitattributes +2 -0
- README.md +1 -1
- brain_lab/data/emotion_sources/blue-bird-garden.jpg +0 -0
- brain_lab/data/emotion_sources/blue-bird-garden.mp4 +3 -0
- brain_lab/data/emotion_sources/cat-sideways-glance.jpg +0 -0
- brain_lab/data/emotion_sources/cat-sideways-glance.mp4 +3 -0
- brain_lab/data/emotion_sources/collection.json +52 -0
- brain_lab/data/emotion_sources/jobs.json +3 -1
- brain_lab/data/space_results/467b612463784ee499916b886d166358.json.gz +3 -0
- brain_lab/data/space_results/e9ae22f580434fd4ae22ab879b51eb8c.json.gz +3 -0
- brain_lab/data/tribe_jobs/467b612463784ee499916b886d166358/status.json +1 -0
- brain_lab/data/tribe_jobs/e9ae22f580434fd4ae22ab879b51eb8c/status.json +1 -0
- brain_lab/static/app.js +1 -1
.gitattributes
CHANGED
|
@@ -58,3 +58,5 @@ brain_lab/data/emotion_sources/young-sheldon.mp4 filter=lfs diff=lfs merge=lfs -
|
|
| 58 |
brain_lab/static/mindeye/forty-hours.png filter=lfs diff=lfs merge=lfs -text
|
| 59 |
brain_lab/static/mindeye/one-hour.png filter=lfs diff=lfs merge=lfs -text
|
| 60 |
brain_lab/static/mindeye/training-figure.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 58 |
brain_lab/static/mindeye/forty-hours.png filter=lfs diff=lfs merge=lfs -text
|
| 59 |
brain_lab/static/mindeye/one-hour.png filter=lfs diff=lfs merge=lfs -text
|
| 60 |
brain_lab/static/mindeye/training-figure.png filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
brain_lab/data/emotion_sources/blue-bird-garden.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
brain_lab/data/emotion_sources/cat-sideways-glance.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -16,7 +16,7 @@ Brain Explanations, Brain & AI Research, and Jewish Learning & the Mind.
|
|
| 16 |
|
| 17 |
This CPU edition runs the original authored Python learning engines, the Java
|
| 18 |
Mario AI Framework adapter, the trained small LIF Pong model, 3D anatomy, and
|
| 19 |
-
the classroom explanations.
|
| 20 |
saved TRIBE audiovisual predictions. MindEye2 comparisons replay the authors’
|
| 21 |
published figures; their source and license notice are retained in the app.
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
This CPU edition runs the original authored Python learning engines, the Java
|
| 18 |
Mario AI Framework adapter, the trained small LIF Pong model, 3D anatomy, and
|
| 19 |
+
the classroom explanations. Selected video excerpts have genuine
|
| 20 |
saved TRIBE audiovisual predictions. MindEye2 comparisons replay the authors’
|
| 21 |
published figures; their source and license notice are retained in the app.
|
| 22 |
|
brain_lab/data/emotion_sources/blue-bird-garden.jpg
ADDED
|
brain_lab/data/emotion_sources/blue-bird-garden.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:111e2e501775e14ccb8294c285d8675e50922928d541913b6ee10cf4e9b74e52
|
| 3 |
+
size 1169059
|
brain_lab/data/emotion_sources/cat-sideways-glance.jpg
ADDED
|
brain_lab/data/emotion_sources/cat-sideways-glance.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b942a3bb410f1b81489b7588e9712f48855daa9fc6737e1c310bcb1af0b7250
|
| 3 |
+
size 1117718
|
brain_lab/data/emotion_sources/collection.json
CHANGED
|
@@ -553,6 +553,58 @@
|
|
| 553 |
"audio_peak_db": 0.0,
|
| 554 |
"source_batch": "additional-clips-20261015",
|
| 555 |
"source_number": 19
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 556 |
}
|
| 557 |
]
|
| 558 |
}
|
|
|
|
| 553 |
"audio_peak_db": 0.0,
|
| 554 |
"source_batch": "additional-clips-20261015",
|
| 555 |
"source_number": 19
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"id": "blue-bird-garden",
|
| 559 |
+
"number": 20,
|
| 560 |
+
"title": "A tiny blue bird in the garden",
|
| 561 |
+
"intended_emotion": "calm",
|
| 562 |
+
"emotion_display": "Calm / affection",
|
| 563 |
+
"annotation_basis": "A handmade blue-and-white bird perches among leafy branches as the camera moves around it. The publisher describes a handmade miniature.",
|
| 564 |
+
"annotation_method": "Suggested from inspected source frames and publisher metadata; not a viewer measurement.",
|
| 565 |
+
"notice": "",
|
| 566 |
+
"file": "blue-bird-garden.mp4",
|
| 567 |
+
"poster": "blue-bird-garden.jpg",
|
| 568 |
+
"sha256": "111e2e501775e14ccb8294c285d8675e50922928d541913b6ee10cf4e9b74e52",
|
| 569 |
+
"source_sha256": "a195234a4a321896fbe9d5d85ad4a5d965b93262820f4c5e1b6a862cc0af8ceb",
|
| 570 |
+
"source_url": "https://www.instagram.com/reels/DceU5rsvi2x/",
|
| 571 |
+
"source_title": "Video by shuhua47914",
|
| 572 |
+
"uploader": "\u6570\u5a73",
|
| 573 |
+
"excerpt": {
|
| 574 |
+
"start": 0,
|
| 575 |
+
"end": 13.44
|
| 576 |
+
},
|
| 577 |
+
"duration": 13.4,
|
| 578 |
+
"audio_verified": true,
|
| 579 |
+
"audio_peak_db": -21.2,
|
| 580 |
+
"source_batch": "two-reels-20261015",
|
| 581 |
+
"source_number": 20
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"id": "cat-sideways-glance",
|
| 585 |
+
"number": 21,
|
| 586 |
+
"title": "The cat\u2019s sideways glance",
|
| 587 |
+
"intended_emotion": "amusement",
|
| 588 |
+
"emotion_display": "Amusement",
|
| 589 |
+
"annotation_basis": "A cat sits upright with its paws raised and looks sideways toward a person beside it.",
|
| 590 |
+
"annotation_method": "Suggested from inspected source frames and publisher metadata; not a viewer measurement.",
|
| 591 |
+
"notice": "",
|
| 592 |
+
"file": "cat-sideways-glance.mp4",
|
| 593 |
+
"poster": "cat-sideways-glance.jpg",
|
| 594 |
+
"sha256": "5b942a3bb410f1b81489b7588e9712f48855daa9fc6737e1c310bcb1af0b7250",
|
| 595 |
+
"source_sha256": "ded1af8abf847a9b5f17874a2bb65db89fae34d8828bf6a2c55c70a334dbb681",
|
| 596 |
+
"source_url": "https://www.instagram.com/reels/DcDeAkPt__x/",
|
| 597 |
+
"source_title": "Video by mommummimm",
|
| 598 |
+
"uploader": "M\u00f3m m\u0169m m\u0129m",
|
| 599 |
+
"excerpt": {
|
| 600 |
+
"start": 0,
|
| 601 |
+
"end": 19.72
|
| 602 |
+
},
|
| 603 |
+
"duration": 19.68,
|
| 604 |
+
"audio_verified": true,
|
| 605 |
+
"audio_peak_db": -0.2,
|
| 606 |
+
"source_batch": "two-reels-20261015",
|
| 607 |
+
"source_number": 21
|
| 608 |
}
|
| 609 |
]
|
| 610 |
}
|
brain_lab/data/emotion_sources/jobs.json
CHANGED
|
@@ -20,5 +20,7 @@
|
|
| 20 |
"puzzle-pieces": "32e793515fc2411f95f31cc6bd2c3a4e",
|
| 21 |
"football-winning-goal": "10f3310651c84f898b13e3b715b834e9",
|
| 22 |
"football-overhead-kick": "b4a410ec576e4e3eb8b9f50e18ad23ac",
|
| 23 |
-
"football-last-look": "36fa24c9a79146d69a329ccbcd6d0369"
|
|
|
|
|
|
|
| 24 |
}
|
|
|
|
| 20 |
"puzzle-pieces": "32e793515fc2411f95f31cc6bd2c3a4e",
|
| 21 |
"football-winning-goal": "10f3310651c84f898b13e3b715b834e9",
|
| 22 |
"football-overhead-kick": "b4a410ec576e4e3eb8b9f50e18ad23ac",
|
| 23 |
+
"football-last-look": "36fa24c9a79146d69a329ccbcd6d0369",
|
| 24 |
+
"blue-bird-garden": "e9ae22f580434fd4ae22ab879b51eb8c",
|
| 25 |
+
"cat-sideways-glance": "467b612463784ee499916b886d166358"
|
| 26 |
}
|
brain_lab/data/space_results/467b612463784ee499916b886d166358.json.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5cf8f8edeeb214711526a01adf73f7c63276adbd6193d74c657213a22ac5a52
|
| 3 |
+
size 4484859
|
brain_lab/data/space_results/e9ae22f580434fd4ae22ab879b51eb8c.json.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42db48bdb7fd306b12d2f0730ae82c04f6e60454661367a4596f506e8543e5a7
|
| 3 |
+
size 3362999
|
brain_lab/data/tribe_jobs/467b612463784ee499916b886d166358/status.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"id":"467b612463784ee499916b886d166358","state":"complete","phase":"Saved audiovisual prediction ready","mode":"audiovisual","study":{"title":"The cat’s sideways glance","intended_emotion":"amusement","emotion_label":"Amusement","label_source":"suggested from clip inspection","predicted_by_tribe":false,"collection_id":"cat-sideways-glance","source_url":"https://www.instagram.com/reels/DcDeAkPt__x/","excerpt":{"start":0,"end":19.72},"annotation_basis":"A cat sits upright with its paws raised and looks sideways toward a person beside it."},"response_range":[-0.15954491168260573,0.32023154854774466]}
|
brain_lab/data/tribe_jobs/e9ae22f580434fd4ae22ab879b51eb8c/status.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"id":"e9ae22f580434fd4ae22ab879b51eb8c","state":"complete","phase":"Saved audiovisual prediction ready","mode":"audiovisual","study":{"title":"A tiny blue bird in the garden","intended_emotion":"calm","emotion_label":"Calm / affection","label_source":"suggested from clip inspection","predicted_by_tribe":false,"collection_id":"blue-bird-garden","source_url":"https://www.instagram.com/reels/DceU5rsvi2x/","excerpt":{"start":0,"end":13.44},"annotation_basis":"A handmade blue-and-white bird perches among leafy branches as the camera moves around it. The publisher describes a handmade miniature."},"response_range":[-0.2394609972834587,0.3735452741384506]}
|
brain_lab/static/app.js
CHANGED
|
@@ -83,7 +83,7 @@ $('#present').onclick=()=>setPresentation(!document.body.classList.contains('pre
|
|
| 83 |
$('#exit-present').onclick=()=>setPresentation(false);
|
| 84 |
document.addEventListener('keydown',e=>{if(e.key==='Escape')setPresentation(false)});
|
| 85 |
function anatomy(){const rows=state.anatomy.map(p=>`<article class="anatomy-card" data-label="${escape(p.name.toLowerCase())}"><div class="place">${p.view==='outer'?'Exterior / lateral view':'Cutaway / schematic internal view'}</div><h3><span>${p.number}</span>${escape(p.name)}</h3><p><b>Biology:</b> ${escape(p.biology)}</p><p><b>Robot analogy:</b> ${escape(p.analogy)}</p></article>`).join('');$('#experiment').innerHTML=`<div class="card"><div class="card-title"><h2>The complete anatomy checklist</h2><span class="badge">27 / 27</span></div><div class="button-row"><input id="anatomy-search" type="text" placeholder="Find a brain region…" aria-label="Find a brain region" style="flex:1"><button id="print-anatomy" class="secondary">Print labels</button></div><p class="note">The illustrations are schematic teaching guides. Some labels denote broad systems that contain other labeled regions. Language and memory depend on distributed networks.</p><div class="anatomy-grid" style="margin-top:18px">${rows}</div><p class="note">Biological descriptions follow the supplied assignment ideas and these introductory references:</p><div class="source-links">${state.sources.map(s=>`<a href="${s.url}" target="_blank" rel="noreferrer">${escape(s.title)} ↗</a>`).join('')}</div></div>`;$('#anatomy-search').oninput=e=>document.querySelectorAll('.anatomy-card').forEach(c=>c.hidden=!c.dataset.label.includes(e.target.value.toLowerCase()));$('#print-anatomy').onclick=()=>{ $('#anatomy-search').value='';document.querySelectorAll('.anatomy-card').forEach(c=>c.hidden=false);window.print()}}
|
| 86 |
-
$('#model-info').onclick=()=>{$('#dialog-content').innerHTML=`<div class="eyebrow">BRAIN LAB ONLINE · CPU EDITION</div><h2>A mind you can play with.</h2><p>The games, small learning networks, spiking Pong model, brain explorer, explanations, and Jewish learning run on this hosted app. Neural Cinema has
|
| 87 |
|
| 88 |
const boot=(async()=>{
|
| 89 |
try{
|
|
|
|
| 83 |
$('#exit-present').onclick=()=>setPresentation(false);
|
| 84 |
document.addEventListener('keydown',e=>{if(e.key==='Escape')setPresentation(false)});
|
| 85 |
function anatomy(){const rows=state.anatomy.map(p=>`<article class="anatomy-card" data-label="${escape(p.name.toLowerCase())}"><div class="place">${p.view==='outer'?'Exterior / lateral view':'Cutaway / schematic internal view'}</div><h3><span>${p.number}</span>${escape(p.name)}</h3><p><b>Biology:</b> ${escape(p.biology)}</p><p><b>Robot analogy:</b> ${escape(p.analogy)}</p></article>`).join('');$('#experiment').innerHTML=`<div class="card"><div class="card-title"><h2>The complete anatomy checklist</h2><span class="badge">27 / 27</span></div><div class="button-row"><input id="anatomy-search" type="text" placeholder="Find a brain region…" aria-label="Find a brain region" style="flex:1"><button id="print-anatomy" class="secondary">Print labels</button></div><p class="note">The illustrations are schematic teaching guides. Some labels denote broad systems that contain other labeled regions. Language and memory depend on distributed networks.</p><div class="anatomy-grid" style="margin-top:18px">${rows}</div><p class="note">Biological descriptions follow the supplied assignment ideas and these introductory references:</p><div class="source-links">${state.sources.map(s=>`<a href="${s.url}" target="_blank" rel="noreferrer">${escape(s.title)} ↗</a>`).join('')}</div></div>`;$('#anatomy-search').oninput=e=>document.querySelectorAll('.anatomy-card').forEach(c=>c.hidden=!c.dataset.label.includes(e.target.value.toLowerCase()));$('#print-anatomy').onclick=()=>{ $('#anatomy-search').value='';document.querySelectorAll('.anatomy-card').forEach(c=>c.hidden=false);window.print()}}
|
| 86 |
+
$('#model-info').onclick=()=>{$('#dialog-content').innerHTML=`<div class="eyebrow">BRAIN LAB ONLINE · CPU EDITION</div><h2>A mind you can play with.</h2><p>The games, small learning networks, spiking Pong model, brain explorer, explanations, and Jewish learning run on this hosted app. Neural Cinema has 24 preloaded audiovisual TRIBE predictions. Mind’s Eye replays the authors’ published comparisons.</p><p>New video predictions and fresh fMRI decoding are not enabled on this CPU Space. No recorded NSD arrays are published here. Saved brain maps are predictions for an average subject, not measurements of a visitor’s feelings.</p><p>Pictionary uses the requested Qwen and Decider APIs, with the classroom key kept privately on the server. Visitors do not need to enter a key. A shared allowance limits use of the classroom API credits. Drawings are sent to the models; the private game prompt stays in the browser. Spoken hints are transcribed by the hosted Whisper model.</p><p>Your learning session is separate from other visitors. Inactive sessions expire after 30 minutes. A Space restart clears saved learning and session keys.</p>`;$('#info-dialog').showModal()};$('.dialog-close').onclick=()=>$('#info-dialog').close();
|
| 87 |
|
| 88 |
const boot=(async()=>{
|
| 89 |
try{
|