Spaces:
Runtime error
Runtime error
Commit History
-
Dockerfile: chown venv to user after uv sync
webmuppet +1: Claude Sonnet 4.6uv sync runs as root and creates .venv owned by root. HF Spaces then starts the container as user (UID 1000) and uv run fails with Permission denied when trying to write to site-packages. Fix: add chown -R user:user after all build steps, before USER user. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>62aed37
-
Refactor: replace Streamlit with React+Vite SPA + FastAPI server
webmuppet +1: Claude Sonnet 4.6Replaces app.py (Streamlit) with a React+Vite single-page application served as compiled static assets by a new FastAPI server (server.py). The Python backend (src/pipeline.py, retriever, generator, router) is untouched. All user-visible features are preserved: chat with streaming LLM responses, conversation history, saved responses, profession and language selectors, password gate, citation chips, Markdown export, and starter pill questions. Key changes: - server.py: FastAPI entry point — JWT auth, POST /api/query/stream SSE, static file serving of frontend/dist/ - frontend/: React+Vite+Tailwind SPA with full TypeScript, 66 passing tests including property-based tests (fast-check) for storage, export, citations, streaming, and fork isolation - Dockerfile: multi-stage build adding Node frontend compilation step; CMD switched from streamlit to uvicorn - pyproject.toml: streamlit/streamlit-js-eval removed; fastapi/uvicorn/ pyjwt added - CORS only enabled when ALLOWED_ORIGIN en…b5c0df4
-
Disable Streamlit CORS+XSRF for HF Spaces iframe
webmuppet +1: Claude Opus 4.7 (1M context)The legacy streamlit SDK set these flags automatically. Inside the docker SDK the iframe websocket upgrade fails XSRF check, producing the white-screen-of-death symptom (HTML loads, websocket refused, React app never hydrates). HF's proxy + our password gate cover the auth layer instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>e3251f3 -
Initial commit — health marketing compliance RAG
webmuppet +1: Claude Opus 4.7 (1M context)Conversational compliance assistant for NZ healthcare marketing regulation, scoped to complementary/alternative practitioners and supplement sellers. Six-domain corpus + PageIndex retrieval + Claude Sonnet generation. Configured for Hugging Face Spaces (docker SDK). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>bad8b6c