Skip to content

Instantly share code, notes, and snippets.

@kagermanov27
Last active May 19, 2022 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagermanov27/6b4b4689135d6d71cb9f2033b1e66c05 to your computer and use it in GitHub Desktop.
Save kagermanov27/6b4b4689135d6d71cb9f2033b1e66c05 to your computer and use it in GitHub Desktop.
def update_downloaded_images(self):
new_results = list(set(self.unique_results + self.previous_results))
self.new_results = {"previous": new_results}
with open('datasets/previous_images.json', 'w') as f:
json.dump(self.new_results, f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment