File size: 803 Bytes
6e68a92
 
0a25329
6e68a92
0a25329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr

from utility import chat, populate_memory, search_memory

with gr.Blocks(title="Central Memory") as app:
    gr.ChatInterface(
        fn=chat,
        title="Central Memory ChatBot",
        examples=[
            "Remember that my favorite color is blue",
            "Store this: I'm learning Rust to make an OS",
            "Search the memorie about learning rust",
        ],
        api_visibility="private",
    )
    gr.api(populate_memory.func)
    gr.api(search_memory.func)
    gr.Markdown("""---
**Note:** `search_memory` using agentic retrieval. This application exposes all tools as MCP endpoints.
Connect your MCP client to this server to access the `populate_memory` and `search_memory` tools.
""")

app.launch(mcp_server=True, share=False, theme=gr.themes.Soft())