Skip to content

Simple original quote generator using ChatGPT and Pexels API (for a background image).

Notifications You must be signed in to change notification settings

Davon-Rolage/QuoteGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Original Quote Generator

This is a simple quote generator written in python/flask that generates original quotes using ChatGPT and a random background for the quote using Pexels API.

Installation

  1. Create a virtual environment with python -m venv venv
  2. Activate it with venv\scripts\activate
  3. Install required dependencies with python -m pip install -r requirements.txt
  4. Create a .env file in the root directory of your project. Add the following variables:
OPENAI_API_KEY='your_openai_api_key'
PEXELS_API_KEY='your_pexels_api_key'
SECRET_KEY='your_flask_secret_key'
  1. Run server with python app.py

  • To get flask's secret key, you can use command line:
    python -c "import os; print(os.urandom(24).hex())"

About

Simple original quote generator using ChatGPT and Pexels API (for a background image).

Topics

Resources

Stars

Watchers

Forks