Spaces:
Configuration error
Configuration error
Update README.md
Browse files
README.md
CHANGED
@@ -9,4 +9,29 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
# Book Recommender App
|
13 |
+
|
14 |
+
This is a book recommendation app built using Python, scikit-learn, and Gradio. It uses TF-IDF vectorization and cosine similarity to recommend books based on their summaries.
|
15 |
+
|
16 |
+
## Functionality
|
17 |
+
|
18 |
+
* **File Upload and Processing:** Users can upload CSV or Excel files containing book data (title and summary). This functionality depends on the `pandas` library for data loading and manipulation.
|
19 |
+
* **Data Preprocessing:** The app handles missing values and removes duplicate entries. This also relies on `pandas`.
|
20 |
+
* **TF-IDF Vectorization:** Book summaries are converted into numerical vectors using TF-IDF. This is powered by `scikit-learn`'s `TfidfVectorizer`.
|
21 |
+
* **Similarity Calculation:** Cosine similarity is calculated between the TF-IDF vectors to determine how similar books are. This also uses `scikit-learn`.
|
22 |
+
* **Book Recommendation:** Users can enter a book title, and the app recommends similar books based on the calculated similarities.
|
23 |
+
* **User Interface:** The app provides a user-friendly interface using `gradio`.
|
24 |
+
|
25 |
+
## Dependencies
|
26 |
+
|
27 |
+
* **pandas:** For data loading, manipulation, and preprocessing (CSV and Excel file handling).
|
28 |
+
* **scikit-learn:** For TF-IDF vectorization and cosine similarity calculation.
|
29 |
+
* **gradio:** For creating the interactive user interface.
|
30 |
+
|
31 |
+
## How to Run Locally
|
32 |
+
|
33 |
+
1. **Clone the repository:**
|
34 |
+
|
35 |
+
```bash
|
36 |
+
git clone [https://github.com/](https://github.com/)<your_username>/<your_repo_name>.git # Replace with your repo URL
|
37 |
+
cd <your_repo_name>
|