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.
- Generate an OpenAI api key for use with Recycle_Bot
- Setup a virtual environment
- Windows: run
python -m venv openai-envin the main directory - Mac: run
python3 -m venv openai-envin the main directory
- Windows: run
- 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
- Windows:
- Install dependencies
- Run
pip install --upgrade openai Flask requests Werkzeug
- Run
- Run app.py to load Recycle_Bot!
- 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
- 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
- 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)