Skip to content

Instantly share code, notes, and snippets.

@rndmcnlly
Last active February 22, 2021 19:04
Show Gist options
  • Save rndmcnlly/0ccad86bf0f448e00ac713dfc3794d46 to your computer and use it in GitHub Desktop.
Save rndmcnlly/0ccad86bf0f448e00ac713dfc3794d46 to your computer and use it in GitHub Desktop.
A search engine in a gist!

This gist implements a self-contained search engine for the VisualGenome scene corpus. The user interface is built from ipywidgets and presented with Voilà. The corpus is downloaded in the postBuild script so that fresh Binder sessions don't need to wait for this each time. Ideally even more pre-processing would be done here so that the interface gets to a responsive state faster.

launch binder

set -ex
jupyter serverextension enable voila --sys-prefix
wget http://visualgenome.org/static/data/dataset/image_data.json.zip
wget http://visualgenome.org/static/data/dataset/relationships.json.zip
numpy
voila
ijson
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment