I am creating a real estate analytics app using redfin’s public dataset that is >4gb. I am using pandas to capture the .gz file and converting it to a df and then cache it. When I try to deploy it, it likely exceeds runtime.
Here is my code:
import pandas as pd
import streamlit as st
Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here – in particular, please format your code properly so we can try to reproduce the issue.
Can you share the error that you’re seeing/share the link to the deployed app? You’re most likely hitting the 1GB resource limit but the error message can confirm that.
I was able to add this to my Streamlit Cloud app and get memory info in the terminal. Streamlit Cloud is run on Debian if you want to look up commands.
os.system('cat /proc/meminfo')
As a simple test, I would try reducing down the size of the file you are feeding the app, as that would be a simple test to see if that is the only issue. If you trim your data to a few MB or something clearly under the limits, you can verify quickly if the file is indeed the issue.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.