https://github.com/yukaty/clothing-recommendations-api
Clothing Recommendations API with LLM
https://github.com/yukaty/clothing-recommendations-api
flask gpt-4o-mini openai-api
Last synced: about 2 months ago
JSON representation
Clothing Recommendations API with LLM
- Host: GitHub
- URL: https://github.com/yukaty/clothing-recommendations-api
- Owner: yukaty
- Created: 2024-10-15T02:48:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-29T18:00:17.000Z (over 1 year ago)
- Last Synced: 2025-10-14T06:34:15.994Z (9 months ago)
- Topics: flask, gpt-4o-mini, openai-api
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clothing Recommendations API
This API offers personalized outdoor outfit recommendations based on current weather. It was developed as a learning project to explore OpenAI API and Flask.
## Setup
1. Clone the repository
```sh
git clone https://github.com/yukaty/clothing-recommendations-api.git
cd clothing-recommendations-api
```
2. Create a virtual environment
```sh
python3 -m venv venv
source venv/bin/activate
```
3. Install dependencies
```sh
pip install -r requirements.txt
```
4. Update configuration files
- Create a `.env` file in the project root with the following keys:
```
OPENAI_API_KEY=your_openai_api_key # platform.openai.com
WEATHER_API_KEY=your_weather_api_key # openweathermap.org
```
5. Run the server
```sh
python main.py
```
## cURL Example
```sh
curl -X POST http://127.0.0.1:5000/weather_and_outfit -H "Content-Type: application/json" -d '{"latitude": "51.5074", "longitude": "-0.1278"}'
```
## Requirements
- Python 3.7+
- Dependencies listed in `requirements.txt`