Error on deployed App on streamlit

I deploy my first app on streamlit and it was working perfectly fine but now it is shoing error and app is not opening here is my code

streamlit link
https://muhammadammar26627-san-fransisco-c-appstreamlit-tetorial-w8mqz3.streamlitapp.com/

Hi @MuhammadAmmar26627, welcome to the forum!

I have forked the repo and tried to deploy it and it also failed. A check on the log would indicate the source of the problem, which appears to be due to Git LFS as it seems to exceed the storage/bandwidth quota.

An excerpt of the error message from the log is appended below:

[06:51:36] ๐Ÿ™ Cloning into '/app/san-fransisco-crime-classification'...
Downloading App/artifacts/bag_model56.pkl (703 MB)
Error downloading object: App/artifacts/bag_model56.pkl (5c8c271): Smudge error: Error downloading App/artifacts/bag_model56.pkl (5c8c2719e82d214ea763bd523ec2cf53e924d2dcd7e94c685522ad237f15d6ec): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to /app/san-fransisco-crime-classification/.git/lfs/logs/20220806T065136.442493586.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: App/artifacts/bag_model56.pkl: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

More info here:

Similar error from earlier posts:

Hope this helps :slight_smile:

Thank you so much for indicating error. Can you suggest me some solution.

how can i upload large model files on github

Hi @MuhammadAmmar26627, the error message suggests how to solve the situation:

This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

As pointed out in the GitHub documentation it provides only 1 GB of free storage and 1 GB of free bandwidth. Since your PKL file size is 700 MB it could be used only once and would already exceed the free tier.

Thus, some possible solutions could be:

  • Purchase more storage with GitHub โ† Could get quite expensive.
  • Host your Streamlit app on a dedicated VPS (e.g. DigitalOcean that costs $5/month and you can call your PKL file locally from the server). โ† Most economical

Hope this helps :slight_smile:

1 Like

Thank you I got it. Its really helpful for me

1 Like