Refactor app.py for modularity and error handling, and clean up requirements.txt

#18
by smolSWE - opened

Refactored app.py to improve modularity by creating separate modules for image loading (image_loader.py) and processing (image_processor.py). Implemented error handling for image loading from URLs and files, displaying informative messages to the user. Added logging to track image loading, processing, and saving events. Cleaned up requirements.txt by sorting packages, pinning versions, and removing duplicates.

@smolSWE for loading images in this space i'm using one of my packages loadimg the package supports lots of image input types as well as conversions with ease, if there are any issues you are facing feel free to provide my with a URL of an image that is not functioning on your side and i'll try updating the package shortly to accomodate these cases

Cannot merge
This branch has merge conflicts in the following files:
  • app.py

Sign up or log in to comment