File size: 551 Bytes
5da234b
9b889ff
 
 
 
a368d99
41bb094
9b889ff
a368d99
41bb094
de0b566
41bb094
 
de0b566
 
41bb094
de0b566
 
 
41bb094
de0b566
 
a368d99
41bb094
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 os

# Use your own cache directory instead of the global /data
os.environ["TRANSFORMERS_CACHE"] = "./hf_cache"
os.environ["SENTENCE_TRANSFORMERS_HOME"] = "./hf_cache"

import gradio as gr
from agentos_core_v4 import AgentCore

agent = AgentCore()

def run_agent(prompt):
    return agent.run(prompt)

iface = gr.Interface(
    fn=run_agent,
    inputs="text",
    outputs="text",
    title="🧠 AgentOS MVP",
    description="Self-learning agent with vector memory, telemetry, and personality."
)

if __name__ == "__main__":
    iface.launch()