Error: Repository storage limit reached (Max: 1 GB)

Hi @DevangMahesh Thanks for posting! Spaces are typically used to showcase projects or demos and should only contain code. We do not recommend storing data in a Space repo. Data files can be loaded from other hub repo types (models, datasets) easily into your Gradio app. For example, the hub Python client library allows for a straightforward process to load datasets into your Gradio Space. More information can be found here: 🤗 Hub client library.

There are several benefits when it comes to storing data files in a dataset, such as:

  • You have the ability to version your app and data independently
  • Your Space will rebuild more quickly
  • You can work with the data more efficiently in a dataset, as they are optimized for data

Another option is creating a repo for your Space repository: Create and manage a repository and using your Inference Endpoints instead of Spaces.

We also have some tips and recommendations for freeing up storage in your Space: Storage limits.

1 Like