Skip to content

sunu/project-zeno

 
 

Repository files navigation

Project Zeno

Language Interface for Maps & WRI/LCL data APIs.

Dependencies

Getting Started

  1. Clone the repository: `git clone [email protected]:wri/project-zeno.git'
  2. Change into the project directory: cd project-zeno
  3. Install dependencies: uv sync
  4. Activate the environment: source .venv/bin/activate
  5. Run cp .env.example .env and replace values appropriately in the .env file

Start the agent API

The following example shows how the streaming response can be obtained.

Run fastapi server

uv run uvicorn api:app --reload

Test the API

import requests

msg = "How many users are using GFW and how long did it take to get there?"
response = requests.post("http://127.0.0.1:8000/stream", json=dict(query=msg), stream=True)
for line in response:
    if line:
        print(line.decode())

Run streamlit

uv run streamlit run app.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.8%
  • Jupyter Notebook 49.2%