e-commerce / README.md
VincentA2K's picture
Product Recommendation RestAPI
480e694

A newer version of the Gradio SDK is available: 5.22.0

Upgrade
metadata
title: E Commerce
emoji: 💬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
pinned: false
license: apache-2.0
short_description: Testing for e-commerce

An example chatbot using Gradio, huggingface_hub, and the Hugging Face Inference API.

README.md

Product Recommender

A machine learning-powered product recommendation system that uses semantic search to find similar products based on user queries.

Features

  • Semantic search using sentence transformers
  • FastAPI backend for quick recommendations
  • BigQuery integration for training data
  • HuggingFace model hosting
  • Docker support for easy deployment

Setup

  1. Install dependencies:
pip install -e .
  1. Copy and configure environment variables:
cp backend/.env.example backend/.env
# Edit .env with your credentials
  1. Train the model:
python -m backend.train
  1. Start the API:
python -m backend.server

API Documentation

Once running, visit http://localhost:8000/docs for the OpenAPI documentation.

Docker Usage

cd backend
docker-compose up --build

License

MIT License - See LICENSE file for details