Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
/cookbook: gated cells replay committed contact sheets on keyless runs
nirholase763e9517531
diff --git a/public/cookbook/index.html b/public/cookbook/index.htmlindex cc66e9b07..34f5fc788 100644--- a/public/cookbook/index.html+++ b/public/cookbook/index.html@@ -7918,7 +7918,8 @@ Neither needs an account or API key, so both are free to run.</p>below is real committed output from a live run, readable without executinganything. The <code>RUN_LIVE</code> flag in the Setup cell (default <code>False</code>) gates everycell that calls an external service, so a plain Run All makes no network calls-beyond <code>pip</code>; flip the flag to <code>True</code> to reproduce the pipeline yourself. A+beyond <code>pip</code> and replays the committed contact sheets in place of the live+galleries; flip the flag to <code>True</code> to reproduce the pipeline yourself. Alive run takes roughly 10 to 15 minutes end to end, almost all of it 3Dgeneration time (about 30 to 90 seconds per prop, run in parallel).</p></div>@@ -8003,8 +8004,28 @@ generation time (about 30 to 90 seconds per prop, run in parallel).</p><span class="c1"># True to opt in and reproduce the whole pipeline yourself.</span><span class="n">RUN_LIVE</span> <span class="o">=</span> <span class="kc">False</span>-<span class="n">SKIP_NOTE</span> <span class="o">=</span> <span class="p">(</span><span class="s2">"RUN_LIVE is False: this cell kept its committed results instead of "</span>- <span class="s2">"calling the live services. Set RUN_LIVE = True in the Setup cell to run it."</span><span class="p">)</span>+<span class="n">SKIP_NOTE</span> <span class="o">=</span> <span class="p">(</span><span class="s2">"RUN_LIVE is False: skipped the live calls and replayed this cell's "</span>+ <span class="s2">"committed results below. Set RUN_LIVE = True in the Setup cell to run it live."</span><span class="p">)</span>+++<span class="k">def</span><span class="w"> </span><span class="nf">show_committed</span><span class="p">(</span><span class="o">*</span><span class="n">receipts</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span>+<span class="w"> </span><span class="sd">"""Replay the committed static contact sheets when a live cell is skipped,</span>+<span class="sd"> so a keyless Run All still ends with every result visible. Looks for the</span>+<span class="sd"> repo's images/ directory relative to common working directories; a</span>+<span class="sd"> standalone copy of the notebook falls back to a pointer at the hosted run.</span>+<span class="sd"> """</span>+ <span class="kn">from</span><span class="w"> </span><span class="nn">pathlib</span><span class="w"> </span><span class="kn">import</span> <span class="n">Path</span>++ <span class="nb">print</span><span class="p">(</span><span class="n">SKIP_NOTE</span><span class="p">)</span>+ <span class="k">for</span> <span class="n">name</span> <span class="ow">in</span> <span class="n">receipts</span><span class="p">:</span>+ <span class="n">hit</span> <span class="o">=</span> <span class="nb">next</span><span class="p">((</span><span class="n">p</span> <span class="o">/</span> <span class="n">name</span> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span>+ <span class="p">(</span><span class="n">Path</span><span class="p">(</span><span class="s2">"../../images"</span><span class="p">),</span> <span class="n">Path</span><span class="p">(</span><span class="s2">"images"</span><span class="p">),</span> <span class="n">Path</span><span class="p">(</span><span class="s2">"."</span><span class="p">))</span>+ <span class="k">if</span> <span class="p">(</span><span class="n">p</span> <span class="o">/</span> <span class="n">name</span><span class="p">)</span><span class="o">.</span><span class="n">is_file</span><span class="p">()),</span> <span class="kc">None</span><span class="p">)</span>+ <span class="k">if</span> <span class="n">hit</span><span class="p">:</span>+ <span class="n">display</span><span class="p">(</span><span class="n">Image</span><span class="p">(</span><span class="n">filename</span><span class="o">=</span><span class="nb">str</span><span class="p">(</span><span class="n">hit</span><span class="p">)))</span>+ <span class="k">else</span><span class="p">:</span>+ <span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">" (static receipt </span><span class="si">{</span><span class="n">name</span><span class="si">}</span><span class="s2"> not found locally; see the committed "</span>+ <span class="sa">f</span><span class="s2">"run at https://three.ws/cookbook)"</span><span class="p">)</span></pre></div></div></div>@@ -8332,7 +8353,7 @@ the batch. Every model below was generated live by this cell.</p><span class="s2">"lane and rendered inline. Drag to orbit; tap AR on a phone."</span><span class="p">,</span><span class="p">)</span><span class="k">else</span><span class="p">:</span>- <span class="nb">print</span><span class="p">(</span><span class="n">SKIP_NOTE</span><span class="p">)</span>+ <span class="n">show_committed</span><span class="p">(</span><span class="s2">"threews_wizard_study_set.png"</span><span class="p">)</span></pre></div></div></div>@@ -8617,7 +8638,7 @@ own brief in the last line:</p><span class="n">subtitle</span><span class="o">=</span><span class="s2">"Designed and built by the model from a single-line brief."</span><span class="p">,</span><span class="p">)</span><span class="k">else</span><span class="p">:</span>- <span class="nb">print</span><span class="p">(</span><span class="n">SKIP_NOTE</span><span class="p">)</span>+ <span class="n">show_committed</span><span class="p">(</span><span class="s2">"threews_houseplant_set.png"</span><span class="p">)</span></pre></div></div></div>@@ -9028,7 +9049,7 @@ survive script-free views too.</p><span class="n">subtitle</span><span class="o">=</span><span class="s2">"Each card is the exact image the model inspected, with its structured verdict."</span><span class="p">,</span><span class="p">)</span><span class="k">else</span><span class="p">:</span>- <span class="nb">print</span><span class="p">(</span><span class="n">SKIP_NOTE</span><span class="p">)</span>+ <span class="n">show_committed</span><span class="p">(</span><span class="s2">"threews_houseplant_qa_verdicts.png"</span><span class="p">)</span></pre></div></div></div>@@ -9185,7 +9206,7 @@ human.</p><span class="s2">"the critic's own revised prompt."</span><span class="p">,</span><span class="p">)</span><span class="k">else</span><span class="p">:</span>- <span class="nb">print</span><span class="p">(</span><span class="n">SKIP_NOTE</span><span class="p">)</span>+ <span class="n">show_committed</span><span class="p">(</span><span class="s2">"threews_houseplant_set_after_qa.png"</span><span class="p">)</span></pre></div></div></div>@@ -9339,7 +9360,7 @@ the cell to copy into your own project.</p><span class="s2">"one sentence. Drag to orbit; tap AR on a phone."</span><span class="p">,</span><span class="p">)</span><span class="k">else</span><span class="p">:</span>- <span class="nb">print</span><span class="p">(</span><span class="n">SKIP_NOTE</span><span class="p">)</span>+ <span class="n">show_committed</span><span class="p">(</span><span class="s2">"threews_deep_sea_cabin_set.png"</span><span class="p">)</span></pre></div></div></div>diff --git a/public/cookbook/text_to_3d_with_function_calling.ipynb b/public/cookbook/text_to_3d_with_function_calling.ipynbindex c3bc94914..ffc4ae045 100644--- a/public/cookbook/text_to_3d_with_function_calling.ipynb+++ b/public/cookbook/text_to_3d_with_function_calling.ipynb@@ -76,7 +76,8 @@"below is real committed output from a live run, readable without executing\n","anything. The `RUN_LIVE` flag in the Setup cell (default `False`) gates every\n","cell that calls an external service, so a plain Run All makes no network calls\n",- "beyond `pip`; flip the flag to `True` to reproduce the pipeline yourself. A\n",+ "beyond `pip` and replays the committed contact sheets in place of the live\n",+ "galleries; flip the flag to `True` to reproduce the pipeline yourself. A\n","live run takes roughly 10 to 15 minutes end to end, almost all of it 3D\n","generation time (about 30 to 90 seconds per prop, run in parallel).\n"]@@ -161,8 +162,28 @@"# True to opt in and reproduce the whole pipeline yourself.\n","RUN_LIVE = False\n","\n",- "SKIP_NOTE = (\"RUN_LIVE is False: this cell kept its committed results instead of \"\n",- " \"calling the live services. Set RUN_LIVE = True in the Setup cell to run it.\")\n"+ "SKIP_NOTE = (\"RUN_LIVE is False: skipped the live calls and replayed this cell's \"\n",+ " \"committed results below. Set RUN_LIVE = True in the Setup cell to run it live.\")\n",+ "\n",+ "\n",+ "def show_committed(*receipts: str) -> None:\n",+ " \"\"\"Replay the committed static contact sheets when a live cell is skipped,\n",+ " so a keyless Run All still ends with every result visible. Looks for the\n",+ " repo's images/ directory relative to common working directories; a\n",+ " standalone copy of the notebook falls back to a pointer at the hosted run.\n",+ " \"\"\"\n",+ " from pathlib import Path\n",+ "\n",+ " print(SKIP_NOTE)\n",+ " for name in receipts:\n",+ " hit = next((p / name for p in\n",+ " (Path(\"../../images\"), Path(\"images\"), Path(\".\"))\n",+ " if (p / name).is_file()), None)\n",+ " if hit:\n",+ " display(Image(filename=str(hit)))\n",+ " else:\n",+ " print(f\" (static receipt {name} not found locally; see the committed \"\n",+ " f\"run at https://three.ws/cookbook)\")\n"]},{@@ -603,7 +624,7 @@" \"lane and rendered inline. Drag to orbit; tap AR on a phone.\",\n"," )\n","else:\n",- " print(SKIP_NOTE)\n"+ " show_committed(\"threews_wizard_study_set.png\")\n"]},{@@ -955,7 +976,7 @@" subtitle=\"Designed and built by the model from a single-line brief.\",\n"," )\n","else:\n",- " print(SKIP_NOTE)\n"+ " show_committed(\"threews_houseplant_set.png\")\n"]},{@@ -1335,7 +1356,7 @@" subtitle=\"Each card is the exact image the model inspected, with its structured verdict.\",\n"," )\n","else:\n",- " print(SKIP_NOTE)\n"+ " show_committed(\"threews_houseplant_qa_verdicts.png\")\n"]},{@@ -1525,7 +1546,7 @@" \"the critic's own revised prompt.\",\n"," )\n","else:\n",- " print(SKIP_NOTE)\n"+ " show_committed(\"threews_houseplant_set_after_qa.png\")\n"]},{@@ -1738,7 +1759,7 @@" \"one sentence. Drag to orbit; tap AR on a phone.\",\n"," )\n","else:\n",- " print(SKIP_NOTE)\n"+ " show_committed(\"threews_deep_sea_cabin_set.png\")\n"]},{@@ -1866,4 +1887,4 @@},"nbformat": 4,"nbformat_minor": 5-}+}\ No newline at end of file