Git pull failed while deploying

  • Fixed the problem with :
    I was trying to use git lfs to load my model.
    I uploaded in a dropbox instead and loaded it with :

    if not 'model.pkl' in os.listdir('.'):
        txt = st.warning("Téléchargement du modÚle")
        url = "https://www.dropbox.com/s/.....?dl=1"
        r = requests.get(url, allow_redirects=True)
        open("model.pkl", 'wb').write(r.content)
        del r
        txt.success("Téléchargement terminé")
    
  • Now it’s not working because the file size (1.5Go) is bigger than the ressource for a free account :persevere:

1 Like