Hi,
I don’t know very well streamlit is my first time.
1.-my applic run well in streamlit local but non in the cloud streamlit
I try to deploy incloud streamlit
2.- here my applic’s link :https://mbtest1.streamlit.app/.
3.-here piece of my logs:
WARNING: You are using pip version 22.0.3; however, version 24.0 is available.
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.
[14:37:01] 🐍 Python dependencies were installed from /mount/src/projet2/requirements.txt using pip.
Check if streamlit is installed
Streamlit is already installed
[14:37:05] 📦 Processed dependencies!
I think there is not a problem to run but there is a problem to show data. I want just show 5 rows but is impossible,my data is a file .csv.
here is what it displays in the firs row:
oid sha256:d702a8629d4de2914055b819013539640063636aa7d74859a7a4dda6fc709a34
Hi @MariaB, this is because that file is very large for GitHub, so it has been uploaded using Github LFS. Unfortunately, I don’t know of a good way to fetch files from Github LFS on Community Cloud.
The good news is, there are some workarounds:
Zip your csv before adding it to your repo – pandas can read zipped csvs just fine
Save your file as a more compressed format, like parquet
Hi Blackary, thank you for yours advice. I tried number 1 , but it’s not ok beacuse file compressed is not 25M(accepted by github).
if I arrived to zipped my file and reload in github, how can streamlit unzipped and read? or how unzipped on github?
for example df=pd.read_csv(‘test.zip’) or df=pd.read_csv(‘test.csv’), how I should write my progam to read data?.
If I should break my file, I should read eah file into dataframe then merge, is that right?.
Yes, df=pd.read_csv(‘test.zip’) should work great
and if you break it into multiple ones, than reading each one and then pd.concat is probably what you want.
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.