Chris4K commited on
Commit
6be458f
·
verified ·
1 Parent(s): cdb66db

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -325,7 +325,7 @@ async def mcp_rpc(request: Request):
325
 
326
  @app.get("/", response_class=HTMLResponse)
327
  async def serve_ui():
328
- return HTMLResponse(SPA)
329
 
330
  SPA = """<!DOCTYPE html>
331
  <html lang="en">
@@ -537,7 +537,7 @@ body::after{content:'';position:fixed;inset:0;pointer-events:none;
537
  <span class="tc on" id="f-all">ALL</span>
538
  <span class="tc" id="f-ep">&#128196; Episodic</span>
539
  <span class="tc" id="f-se">&#129504; Semantic</span>
540
- <span class="tc" id="f-pr">&#9881;&#65039; Procedural</span>
541
  <span class="tc" id="f-wk">&#9203; Working</span>
542
  </div>
543
 
@@ -572,7 +572,7 @@ body::after{content:'';position:fixed;inset:0;pointer-events:none;
572
  <select id="ftier">
573
  <option value="episodic">&#128196; Episodic</option>
574
  <option value="semantic">&#129504; Semantic</option>
575
- <option value="procedural">&#9881;&#65039; Procedural</option>
576
  <option value="working">&#9203; Working</option>
577
  </select>
578
  </div>
@@ -610,7 +610,7 @@ function toast(msg,err){var el=document.createElement('div');el.className='tst'+
610
  el.textContent=(err?'\u26a0 ':'\u26a1 ')+msg;
611
  document.getElementById('toasts').appendChild(el);setTimeout(function(){el.remove();},2600);}
612
 
613
- var TIER_ICONS={episodic:'\uD83D\uDCC4',semantic:'\uD83E\uDDE0',procedural:'\u2699\uFE0F',working:'\u23F3'};
614
 
615
  function loadMems(){
616
  var url = FILTER=='all'
@@ -784,4 +784,4 @@ document.addEventListener('keydown',function(e){
784
  loadMems();
785
  </script>
786
  </body>
787
- </html>"""
 
325
 
326
  @app.get("/", response_class=HTMLResponse)
327
  async def serve_ui():
328
+ return HTMLResponse(content=SPA, media_type='text/html; charset=utf-8')
329
 
330
  SPA = """<!DOCTYPE html>
331
  <html lang="en">
 
537
  <span class="tc on" id="f-all">ALL</span>
538
  <span class="tc" id="f-ep">&#128196; Episodic</span>
539
  <span class="tc" id="f-se">&#129504; Semantic</span>
540
+ <span class="tc" id="f-pr">&#9881; Procedural</span>
541
  <span class="tc" id="f-wk">&#9203; Working</span>
542
  </div>
543
 
 
572
  <select id="ftier">
573
  <option value="episodic">&#128196; Episodic</option>
574
  <option value="semantic">&#129504; Semantic</option>
575
+ <option value="procedural">&#9881; Procedural</option>
576
  <option value="working">&#9203; Working</option>
577
  </select>
578
  </div>
 
610
  el.textContent=(err?'\u26a0 ':'\u26a1 ')+msg;
611
  document.getElementById('toasts').appendChild(el);setTimeout(function(){el.remove();},2600);}
612
 
613
+ var TIER_ICONS={episodic:'&#128196;',semantic:'&#129504;',procedural:'&#9881;',working:'&#9203;'};
614
 
615
  function loadMems(){
616
  var url = FILTER=='all'
 
784
  loadMems();
785
  </script>
786
  </body>
787
+ </html>"""