palpen / DALLEePaperFrame

MIT License
1 stars 0 forks source link

Load images from `saved_images` when server is off---even if there are new Tweet prompts #9

Closed palpen closed 2 years ago

palpen commented 2 years ago

The client checks the saved_images folder for text prompts for which images have already been generated. If there happens to be a Tweet prompt for which no images has been generated by the client and the server also happens to be off, the client will keep sending a request to the server for a new image and fail. Eventually, the counter for the number of screen refreshes reaches its max limit and the client's program is shut off.

This is a bug. We want the client to load images from the saved_images folder when the server is off (if there are no images, then the program should exit) even if there are new Tweet prompts.

Solution:

Implementation: