metadata
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.
Setup
- Deploy the Code Search API Space first (the FastAPI backend).
- Deploy this Space.
- 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