IndigoWizard / NDVI-Viewer

Monitor Vegetation Health by Viewing & Comparing NDVI Values & Satellite Images On The Fly!
https://ndvi-viewer.streamlit.app/
16 stars 6 forks source link

Optimize Resource Consumption and User Experience in Streamlit App #31

Closed IndigoWizard closed 11 months ago

IndigoWizard commented 11 months ago

REMAINDER! Please make your PRs to the develop branch, not streamlit-app branch.

Main PR gist

This pull request addresses an issue with resource consumption and frequent app refreshes in the Streamlit app. The problem arose when the app gained popularity and was shared on social media, resulting in excessive resource consumption due to the way Streamlit handles user input where the app refreshes every time any input value is altered, causing crashes when it comes to multiple inputs.

Issue ticket

Type of change

Check relevant options and delete options not relevant to this PR:

Changes description

Preview

Before After
before after
individual inputs with huge time load single form input with single time load

Checklist