Language Interface for Maps & WRI/LCL data APIs.
- Clone the repository: `git clone [email protected]:wri/project-zeno.git'
- Change into the project directory:
cd project-zeno
- Install dependencies:
uv sync
- Activate the environment:
source .venv/bin/activate
- Run
cp .env.example .env
and replace values appropriately in the .env file
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