Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
solves Issue #267
The issue where the Streamlit app was not working due to incorrect file paths when deployed on Streamlit Cloud.
Changes Made:
Updated the file paths to include the streamlit/ directory prefix, ensuring the app works correctly when deployed on Streamlit Cloud.
Example of the path change:
From: df2020.csv
To: streamlit/df2020.csv
Important Instructions for Contributors:
Do not change the file paths in the main repository: The paths should remain with the streamlit/ prefix to ensure compatibility with Streamlit Cloud.
Running Locally: When running the app on a local machine, you may need to remove the streamlit/ prefix from the file paths. However, these changes should not be committed to the main repository.
Ensure any local changes for running the app are not pushed to the main repository to avoid breaking the deployment.
Working model
After my changes , i have successfully deployed on Streamlit Cloud as you can see in the below video:
app.1.mp4
sir, i deleted this app in my account so you can paste the home.py as the main module while deploying as shown below: