--- title: Code Search Client colorFrom: blue colorTo: indigo sdk: streamlit sdk_version: 1.54.0 app_file: app.py pinned: false license: mit --- # Code Search Client A Streamlit UI for the [Code Search API](https://huggingface.co/spaces/YOUR_USER/code-search-api). ## Setup 1. Deploy the **Code Search API** Space first (the FastAPI backend). 2. Deploy this Space. 3. Open the app and paste your API Space URL into the sidebar (e.g. `https://your-user-code-search-api.hf.space`). ## Features | Tab | Description | |---|---| | 🔍 Search | Query any indexed document or project | | 📄 Index File | Upload a single source file to index | | 📦 Batch Index | Upload a whole project (multiple files) under one doc_id | | 🗂 Documents | Browse and delete indexed documents | | 🧮 Embed | Get raw 768-dim embeddings for any text | ## Tip — pre-configure the API URL Set the `API_URL` environment variable in your Space secrets to pre-fill the sidebar: ``` API_URL=https://your-user-code-search-api.hf.space ```