Image Loaders
DropboxLoader
This notebook will demonstrate how to use the DropboxLoader
to upload images from a DropBox folder.
Initialization
DropboxLoader requires you to create a Dropbox App and generate an access token. This can be done by going here and clicking “Create App”. After the app is created, go to the OAuth 2 section and generate an access token.
We additionally must specify the folder path that we aim to retrieve the images from.
Retrieving Results
The load
function can be used to retrieve results by passing in a prompt. By default, all images in the folder are retrieved, but you can pass in a custom number of images to retrieve with the num
parameter.
An ImageGallery object is returned.