Recode-Hive / Stackoverflow-Analysis

Stack overflow is a professional community for developers. This repo analysis 3 years of developer Survey done by Stackoverflow and do visualization and predict the salary of Data Scientist in future.
https://stackoverflow-analysis.streamlit.app/
MIT License
110 stars 102 forks source link

Fixed the streamlit app #276

Closed revanth1718 closed 3 weeks ago

revanth1718 commented 3 weeks ago

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:

https://github.com/Recode-Hive/Stackoverflow-Analysis/assets/109272714/527d4e74-047d-46dd-8bec-32404ed9dd70

sir, i deleted this app in my account so you can paste the home.py as the main module while deploying as shown below: Screenshot (573)

github-actions[bot] commented 3 weeks ago

πŸŽ‰ Your pull request has been successfully merged! πŸŽ‰ Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! πŸš€

revanth1718 commented 3 weeks ago

I have successfully deployed https://rev-analysis.streamlit.app/