Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,28 @@ OPENAI_API_KEY="sk-..."
ARRAYLAKE_API_KEY="your-arraylake-key"
```

### 4. Start the FastAPI backend
### 4. Install frontend dependencies

```bash
uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
cd frontend
npm install
cd ..
```

> **Important:** Run `npm install` *before* starting the backend. If uvicorn is already running with `--reload`, the creation of `node_modules/` triggers a server restart, causing temporary `ETIMEDOUT` proxy errors in the frontend.

### 5. Start the FastAPI backend

```bash
uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload --reload-exclude 'frontend/node_modules/*'
```

The API runs on `http://localhost:8000`. Health check: `GET /health`.

### 5. Start the React frontend
### 6. Start the React frontend

```bash
cd frontend
npm install
npm run dev
```

Expand Down
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ dependencies:

# pip-only packages (not available on conda-forge)
- pip:
- langchain-classic
- langchain-anthropic
- langchain-anthropic<1.0.0
- arraylake
- aitta-client
2 changes: 1 addition & 1 deletion src/climsight/tools/destine_retrieval_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

try:
import streamlit as st
except ImportError:
except Exception:
st = None

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/climsight/tools/era5_retrieval_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Optional: Check for Streamlit to support session state if available
try:
import streamlit as st
except ImportError:
except Exception:
st = None
except ImportError as e:
install_command = "pip install --upgrade xarray zarr arraylake pandas numpy pydantic langchain-core"
Expand Down
Loading