This project provides an API to generate dynamic return policies for different product categories based on customer trustworthiness scores. The API is built using FastAPI and integrates with HuggingFace models using LangChain to provide AI-generated return policies.
- Clone the Repository
git clone https://github.com/Manvith-Shetty/Return-Policy.git
cd Return-Policy
- Create a Virtual Environment
python -m venv venv
venv\Scripts\activate # on linux source venv/bin/activate
- Install Dependencies
pip install -r requirements.txt
- Set up Environment Variables
HF_TOKEN=your_huggingface_api_token
Start the FastAPI Server
fastapi run app.py --port 8000 --reload