AgentOS-Core-V2 / app.py
Tpayne101's picture
Update app.py
9b889ff verified
raw
history blame contribute delete
551 Bytes
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()