Skip to content

Instantly share code, notes, and snippets.

@kagermanov27
Created May 19, 2022 12:33
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/21e2118941b9ea52ccf1cacbdd1b52e9 to your computer and use it in GitHub Desktop.
Save kagermanov27/21e2118941b9ea52ccf1cacbdd1b52e9 to your computer and use it in GitHub Desktop.
def separate_unique_results(self):
f = open('datasets/previous_images.json')
previous_results = json.load(f)
self.previous_results = previous_results['previous']
self.unique_results = list(set(self.results).difference(set(self.previous_results)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment