Follow the steps:
Upload 3 files to your repo:
a. bears_classifier.iypnb (your own notebook or you can download from here)
b. export.pkl ( It will be a large file. If it is >25MB, uploading through github is not allowed. Use the method shown in this video)
c. requirements.txt (download from here)
After this your repo should look like this:
Open https://mybinder.org/ . Copy your repo URL in ‘GitHub repository name or URL’ and ‘/voila/render/bear_classifier.ipynb’ in ‘URL to open (optional)’ and change ‘File’ option to ‘URL’.
After this, it should look like this:
Press ‘Launch’. Should take some time for the first time. It launches faster next time.
If at Step 2, you are getting errors like ‘404: Not found’ or ‘There was an error when executing cell . Please run Voilà with --debug to see the error message.’ then do the following:
Same as Step 1 above
Open https://mybinder.org/ . Copy your repo URL in ‘GitHub repository name or URL’ and leave other fields empty and press Launch.
This opens the Jupyter Notebook interface:
Open bear_classifier.iypnb and press the voila button on the top:
This will open the notebook with voila in another tab. If it runs properly go back to binder home page and follow from Step 2 of above method.
This should work!