Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,48 +1,58 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
##
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
Hugging Face Spaces for hosting
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Book Recommender (Hybrid ALS + Semantic)
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.35.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
## Hybrid Book Recommendation System
|
| 12 |
+
|
| 13 |
+
This project is a Hybrid Book Recommender deployed on Hugging Face Spaces using Streamlit.
|
| 14 |
+
It combines Collaborative Filtering (ALS Matrix Factorization) with Semantic Search using Book Embeddings to generate intelligent recommendations.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
Search books using text queries (title/description similarity).
|
| 19 |
+
|
| 20 |
+
Get personalized recommendations based on user embeddings.
|
| 21 |
+
|
| 22 |
+
Hybrid scoring: CF + semantic similarity for better accuracy.
|
| 23 |
+
|
| 24 |
+
Clean Streamlit UI for quick interaction.
|
| 25 |
+
|
| 26 |
+
## Project Structure
|
| 27 |
+
.
|
| 28 |
+
β app.py
|
| 29 |
+
β requirements.txt
|
| 30 |
+
β Dockerfile
|
| 31 |
+
ββ als_user_factors.npy
|
| 32 |
+
ββ als_item_factors.npy
|
| 33 |
+
ββ item_embeddings.npy
|
| 34 |
+
ββ meta_books.csv
|
| 35 |
+
ββ user_to_index.pkl
|
| 36 |
+
ββ item_to_index.pkl
|
| 37 |
+
ββ index_to_item.pkl
|
| 38 |
+
|
| 39 |
+
## Run Locally
|
| 40 |
+
```bash
|
| 41 |
+
pip install -r requirements.txt
|
| 42 |
+
streamlit run app.py
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Run with Docker
|
| 46 |
+
|
| 47 |
+
docker build -t book-recommender .
|
| 48 |
+
docker run -p 7860:7860 book-recommender
|
| 49 |
+
|
| 50 |
+
# Acknowledgments
|
| 51 |
+
|
| 52 |
+
Implicit library for ALS
|
| 53 |
+
|
| 54 |
+
SentenceTransformers for embeddings
|
| 55 |
+
|
| 56 |
+
Streamlit for UI
|
| 57 |
+
|
| 58 |
Hugging Face Spaces for hosting
|