Skip to content

sw3ta07/description-generator

Repository files navigation

Product Description Generator

A Flask-based web application that generates professional product descriptions using OpenAI's GPT-3.5 API. The application allows users to create, manage, and download shipping labels for their products.

Features

  • User authentication (register/login)
  • AI-powered product description generation
  • Marketing title generation
  • Product management dashboard
  • Shipping label generation and download
  • Responsive web interface

Prerequisites

  • Python 3.7 or higher
  • OpenAI API key
  • pip (Python package manager)

Installation

  1. Clone the repository:
git clone <your-repository-url>
cd product-description-generator
  1. Create and activate a virtual environment:
python -m venv venv
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root and add your OpenAI API key:
OPENAI_API_KEY=your-api-key-here

Usage

  1. Start the Flask application:
python app.py
  1. Open your web browser and navigate to http://localhost:5000

  2. Register a new account or login with existing credentials

  3. Use the dashboard to:

    • Add new products
    • Generate AI-powered descriptions
    • Download shipping labels
    • Manage your product catalog

Project Structure

product-description-generator/
├── app.py              # Main application file
├── requirements.txt    # Python dependencies
├── .env               # Environment variables
├── .gitignore        # Git ignore file
├── static/           # Static files
│   └── shipping_labels/  # Generated shipping labels
└── templates/        # HTML templates
    ├── base.html
    ├── dashboard.html
    ├── index.html
    ├── login.html
    └── register.html

Dependencies

  • Flask
  • Flask-SQLAlchemy
  • Flask-Login
  • OpenAI
  • python-dotenv
  • reportlab

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors