Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to download from Google Drive / load model from GDrive #86

Open
jfthuong opened this issue Nov 21, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@jfthuong
Copy link
Contributor

It is convenient to download directly from Google Drive.

Fortunately, a library is helping to do that: https://pypi.org/project/gdown/

url = 'https://drive.google.com/file/d/1-DUsVYgY-oMTcNhM3-znP_nlu8yFtQBr/view?usp=sharing'
output = 'model.pkl'
gdown.download(url, output, quiet=False, fuzzy=True)

This could be nice to be able to load directly the model (maybe inferring what type of pickle it is)?

@jfthuong jfthuong added the enhancement New feature or request label Nov 21, 2021
@raynardj
Copy link
Collaborator

It is convenient to download directly from Google Drive.

Fortunately, a library is helping to do that: https://pypi.org/project/gdown/

url = 'https://drive.google.com/file/d/1-DUsVYgY-oMTcNhM3-znP_nlu8yFtQBr/view?usp=sharing'
output = 'model.pkl'
gdown.download(url, output, quiet=False, fuzzy=True)

This could be nice to be able to load directly the model (maybe inferring what type of pickle it is)?

These lines of code are simple and explanatory enough, shall we reconsider putting this into unpackai?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants