Spaces:
Running
Running
| """Neul Labs — safe agent infrastructure. Four runnable demos in one Space. | |
| Each tab runs a REAL tool (built from source or pip-installed), not a mock: | |
| - grite : git-native issue tracking + multi-agent coordination | |
| - ormai : policy-mediated database access for agents | |
| - agentvfs : isolated vaults + checkpoint/rollback | |
| - closegate : finance-agent governance eval (reconciliation + policy) | |
| Consolidated from four Spaces into one to stay within HF's cpu-basic quota. | |
| """ | |
| import gradio as gr | |
| # Importing each module wires up its real tool + defines its demo function. | |
| import grite_mod | |
| import ormai_mod | |
| import avfs_mod | |
| import closegate_mod | |
| INTRO = """# Neul Labs: safe agent infrastructure | |
| Runnable building blocks for agents you can trust. Every tab below runs the | |
| **real tool** over local data — no API keys, no external services. Coordination | |
| in git, policy-mediated data access, an execution boundary with rollback, and a | |
| finance-agent governance eval. | |
| 🔧 [github.com/neul-labs](https://github.com/neul-labs) · 🤗 [huggingface.co/neullabs](https://huggingface.co/neullabs) | |
| """ | |
| with gr.Blocks(title="Neul Labs — safe agent infrastructure") as demo: | |
| gr.Markdown(INTRO) | |
| with gr.Tab("grite — coordinate in git"): | |
| gr.Markdown(grite_mod.HEADER) | |
| gb = gr.Button("Run the multi-agent demo", variant="primary") | |
| go = gr.Markdown() | |
| gb.click(grite_mod.multi_agent_demo, None, go) | |
| with gr.Tab("ormai — safe DB access"): | |
| gr.Markdown(ormai_mod.HEADER) | |
| with gr.Row(): | |
| ot = gr.Dropdown(["acme", "globex"], value="acme", label="Agent's tenant") | |
| om = gr.Dropdown(["Customer", "Order"], value="Customer", label="Table") | |
| ob = gr.Button("Run the query through OrmAI", variant="primary") | |
| oo = gr.Markdown() | |
| ob.click(ormai_mod.run_isolation, [ot, om], oo) | |
| with gr.Tab("agentvfs — checkpoint / rollback"): | |
| gr.Markdown(avfs_mod.HEADER) | |
| ab = gr.Button("Run the checkpoint / rollback demo", variant="primary") | |
| ao = gr.Markdown() | |
| ab.click(avfs_mod.demo, None, ao) | |
| with gr.Tab("closegate — governance eval"): | |
| gr.Markdown(closegate_mod.HEADER) | |
| cb = gr.Button("Run the governance eval", variant="primary") | |
| co = gr.Markdown() | |
| cb.click(closegate_mod.run_eval, None, co) | |
| if __name__ == "__main__": | |
| demo.launch(server_name="0.0.0.0", server_port=7860) | |