Flytxt_Assignment / README.md
Dashpreetsinghofficial's picture
Upload 3 files
515674a verified
|
Raw History Blame Contribute Delete
1.94 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: Flytxt Assignment
emoji: ⚡
colorFrom: green
colorTo: red
sdk: gradio
sdk_version: 5.16.0
app_file: app.py
pinned: false
short_description: The book title recommendation system for Flytxt

Flytxt Assignment - Book Recommender System

Project Overview

This is a basic content-based book recommender system that takes a book title as input and recommends 5 books that are similar to the input book based on content. The system uses various text attributes such as summaries and categories for model training and matching. It is implemented using machine learning techniques, including TF-IDF for text vectorization and cosine similarity for similarity calculation. The app is hosted on Hugging Face Spaces, where users can input a book title and receive recommendations through a simple UI.

Features

  • Text-based content matching: Recommends books similar to a given title based on content similarity (summaries and categories).
  • Gradio UI: A user-friendly interface where users can input a book title and get recommendations.
  • Cosine Similarity: Uses cosine similarity for comparing book summaries and finding the closest matches.

Requirements

To run this project locally, you'll need to install the following dependencies:

  • pandas: Data manipulation and analysis
  • numpy: Numerical computing
  • scikit-learn: Machine learning library (for TF-IDF and cosine similarity)
  • nltk: Natural Language Toolkit for text processing
  • sentence-transformers: For advanced sentence embeddings (if used in future implementations)
  • gradio: For building the interactive web interface
  • huggingface_hub: To connect and deploy the model on Hugging Face

## You can create venv 
python -m venv venv

## activate your venv
.\venv\Scripts\activatee

## You can install the dependencies using pip:

pip install -r requirements.txt