Skip to content

JeffreyL-3/Recycle_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recycle_Bot

Learn how to recycle anything! Upload an image, add your location and silly personality, and get a response straight from GPT.

Note: using a .jpg or .png image is recommended. Limited file conversion is implemented, but not all file types are supported.

Setup

  • Generate an OpenAI api key for use with Recycle_Bot
  • Setup a virtual environment
    • Windows: run python -m venv openai-env in the main directory
    • Mac: run python3 -m venv openai-env in the main directory
  • After you've created a virtual environment, activate it with one of the following
    • Windows: openai-env\Scripts\activate
    • Mac: source openai-env/bin/activate
  • Install dependencies
    • Run pip install --upgrade openai Flask requests Werkzeug
  • Run app.py to load Recycle_Bot!

Recycle_Bot Features

Basic Functions

  • Upload images and receive realtime responses from GPT-4 Turbo
    • Plug-in support for other models is available by editing defaults.py
  • Adaptive location to tailor instructions to local recycling programs
  • Customizable personality with continued accuracy
  • Robust hand-crafted prompt, keeping responses concise and helpful (even with absurd or malicious parameters)
  • Dynamic prompting template, avoiding hardcoded settings
  • Vision API token optimization to ~300 per check

Quality of Life Upgrades

  • Saves API key and settings for future use
  • GUI input for API key
  • Support for .jpg and .png images, with limited support for converting other file types
  • Popup sidebar menu for settings input

Security protections

  • Simple prompt protection against malicious injection attacks
  • Limited error handling
  • Debugging and cost quantification system enabling token and cost tracking (currently disabled to avoid UI clutter)

About

Learn how to recycle anything!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published