--- title: ProcureMind AI Chat emoji: 🤖 colorFrom: blue colorTo: purple sdk: docker app_port: 7860 pinned: false license: mit short_description: Procurement chat UI built with React, Vite, and Tailwind. tags: - procurement - chat-ui - react --- Docker image: builds the SQLite procurement catalogue from `data/unspsc-english.xlsx`, runs **FastAPI** (`/api/chat`) behind **nginx** on **port 7860**. ### Hugging Face secrets Create a Space secret **`OPENAI_API_KEY`** (required for GPT-4o-mini catalog matching). Optional: **`OPENAI_MODEL`** (defaults to `gpt-4o-mini`). ### Local development **1 — Python API + SQLite** ```bash python3 -m venv .venv && source .venv/bin/activate pip install -r requirements.txt python -m server.build_db # creates data/unspsc.db from data/unspsc-english.xlsx export OPENAI_API_KEY=sk-... export UNSPSC_DB_PATH=data/unspsc.db uvicorn server.main:app --reload --port 8000 ``` **2 — Vite (proxies `/api` → port 8000)** ```bash npm install npm run dev ``` ### Configuration reference https://huggingface.co/docs/hub/spaces-config-reference