Spaces:
Running
Running
Update main.py
Browse files
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">📄 Episodic</span>
|
| 539 |
<span class="tc" id="f-se">🧠 Semantic</span>
|
| 540 |
-
<span class="tc" id="f-pr">⚙
|
| 541 |
<span class="tc" id="f-wk">⏳ 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">📄 Episodic</option>
|
| 574 |
<option value="semantic">🧠 Semantic</option>
|
| 575 |
-
<option value="procedural">⚙
|
| 576 |
<option value="working">⏳ 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:'
|
| 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">📄 Episodic</span>
|
| 539 |
<span class="tc" id="f-se">🧠 Semantic</span>
|
| 540 |
+
<span class="tc" id="f-pr">⚙ Procedural</span>
|
| 541 |
<span class="tc" id="f-wk">⏳ Working</span>
|
| 542 |
</div>
|
| 543 |
|
|
|
|
| 572 |
<select id="ftier">
|
| 573 |
<option value="episodic">📄 Episodic</option>
|
| 574 |
<option value="semantic">🧠 Semantic</option>
|
| 575 |
+
<option value="procedural">⚙ Procedural</option>
|
| 576 |
<option value="working">⏳ 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:'📄',semantic:'🧠',procedural:'⚙',working:'⏳'};
|
| 614 |
|
| 615 |
function loadMems(){
|
| 616 |
var url = FILTER=='all'
|
|
|
|
| 784 |
loadMems();
|
| 785 |
</script>
|
| 786 |
</body>
|
| 787 |
+
</html>"""
|