hatemfaheem / ai-story-generator

Generate stories using AI
2 stars 1 forks source link

Replace pickle for resumable generation/processing #2

Open hatemfaheem opened 1 year ago

hatemfaheem commented 1 year ago

Pickle is used to enable resumable story generation/processing, if the code failed after generating the story i.e. calling OpenAI APIs, the story contents will be saved as a pickle file. That pickle file can be passed to the program again to continue processing the story without recalling OpenAI APIs. According to Python docs, Pickle is unsecure.

https://docs.python.org/3/library/pickle.html