Issue: Uploading Files in Streamlit App Takes Excessively Long Time

Hey there! So, I’ve got this app up on Streamlit for the first time, and I’m facing a bit of a snag. Whenever I upload a file, the prediction process takes forever—like, over an hour—and then the app just gets killed before I even see the result. Strangely, this never happened when I ran it on my computer using VSCode.

I’ve attached a few screenshots so you can see what I’m dealing with. And hey, here are the links to my GitHub and the Streamlit app:

GitHub Repository: GitHub - FarihaAnis/An-Intrusion-Classification-System-with-XGBoost-Classifier-using-CICIoT2023-Dataset: Master of Data Science Project

Streamlit App: https://dashboard-ciciot2023.streamlit.app/



If you’ve got any ideas on how to fix this, I’d really appreciate it! Thanks a bunch!

Welcome to the community, @FarihaAnis! :hugs:

You may be hitting the memory limit on Streamlit Cloud (you have 1GB of RAM). To potentially fix the issue, try implementing file chunking or processing the file in smaller parts to manage memory usage better.

Let me know how it goes.

Best,
Charly

It’s working now after reducing the file size. Thanks for your prompt response!

1 Like

Glad it works! Happy Streamlit-ing! :balloon:

Charly

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.