Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
metadata
title: semantic_search
emoji: π
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
Semantic Search (CNN/DailyMail demo)
Gradio app that builds a Chroma vector store from a small slice of the CNN/DailyMail dataset, then serves semantic search using a SentenceTransformer encoder.
Run locally
python -m venv .venv && source .venv/bin/activatepip install -r requirements.txtpython app.py- First run downloads a 100-row slice of
abisee/cnn_dailymail, chunks articles (500 words, 50 overlap), embeds withall-MiniLM-L6-v2, and persists tochromadb/. - Visit the Gradio UI at
http://localhost:7860.
- First run downloads a 100-row slice of
Deploy on Hugging Face Spaces
- Space type: Gradio (Python).
- Push
app.pyandrequirements.txt(thechromadb/folder is created at runtime). - The app binds to
PORTif provided by the Space; defaults to 7860.
DISCLAIMER: This README.md was formatted with help from ChatGPT