Spaces:
Runtime error
Runtime error
README update
Browse files
README.md
CHANGED
|
@@ -9,4 +9,56 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Shows Recs: TV Series Recommendation System
|
| 13 |
+
|
| 14 |
+
  
|
| 15 |
+
|
| 16 |
+
## Overview
|
| 17 |
+
|
| 18 |
+
**Shows Recs** is a web application that provides TV series recommendations based on user input. It uses Sentence Transformers and FAISS to search and recommend series by embedding text queries and comparing them to a precomputed index of embeddings.
|
| 19 |
+
|
| 20 |
+
## Features
|
| 21 |
+
|
| 22 |
+
- **Metric Selection**: Choose from `L2`, `Dot Product`, or `Cosine Similarity`.
|
| 23 |
+
- **Customizable Recommendations**: Specify the number of recommendations to display.
|
| 24 |
+
- **Fast and Accurate**: Leverages FAISS for efficient similarity search.
|
| 25 |
+
|
| 26 |
+
## Installation & Usage
|
| 27 |
+
|
| 28 |
+
### 1. Clone the Repository
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
git clone https://huggingface.co/skudinov/shows_recs.git
|
| 32 |
+
cd shows_recs
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
### 2. Install Dependencies
|
| 36 |
+
Create a virtual environment and install the required packages:
|
| 37 |
+
```bash
|
| 38 |
+
python3 -m venv venv
|
| 39 |
+
source venv/bin/activate
|
| 40 |
+
pip install -r requirements.txt
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
### 3. Run the Application
|
| 44 |
+
Run the Streamlit app locally:
|
| 45 |
+
```bash
|
| 46 |
+
streamlit run app.py
|
| 47 |
+
```
|
| 48 |
+
The app will be accessible at http://localhost:8501.
|
| 49 |
+
|
| 50 |
+
### 4. Run with Docker
|
| 51 |
+
- Build the Docker image:
|
| 52 |
+
```bash
|
| 53 |
+
docker build -t your_docker_account/your_docker_repo .
|
| 54 |
+
```
|
| 55 |
+
- Run the Docker container:
|
| 56 |
+
```bash
|
| 57 |
+
docker run -p 8501:8501 your_docker_account/your_docker_repo
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## How to Use
|
| 61 |
+
- Enter a query in the text input field.
|
| 62 |
+
- Select a similarity metric (L2, Dot Product, Cosine Similarity).
|
| 63 |
+
- Choose the number of recommendations.
|
| 64 |
+
- Click "Search" to get a list of TV series recommendations.
|