Spaces:
No application file
No application file
A newer version of the Gradio SDK is available:
5.22.0
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
- Install dependencies:
pip install -e .
- Copy and configure environment variables:
cp backend/.env.example backend/.env
# Edit .env with your credentials
- Train the model:
python -m backend.train
- 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