yashasvini121 / predictive-calc

An interactive web application developed with Streamlit, designed for making predictions using various machine learning models. The app dynamically generates forms and pages from JSON configuration files. ⭐ If you found this helpful, consider starring the repo!
https://predictive-calc.streamlit.app/
MIT License
25 stars 72 forks source link

Bug Fix: Handled the FileNotFoundError and JSONDecodeError in formhandler.py #116

Closed KashishJuneja101003 closed 1 month ago

KashishJuneja101003 commented 1 month ago

Description

This pull request enhances the error handling in our Streamlit application by improving the way we load the configuration file in the FormHandler class. With these updates, the app will now handle cases where the configuration file is missing or contains invalid JSON, providing clear error messages to the user instead of crashing.

Issue Resolved

This PR resolves #44

Changes Made

This ensures that users receive clear feedback on what went wrong, making it easier to troubleshoot issues.

Additional Details

These improvements contribute to a more robust user experience by preventing crashes and guiding users on how to resolve configuration-related issues effectively.

Checklist

KashishJuneja101003 commented 1 month ago

I’m new to GSSoC and GitHub, so please forgive me if I made any mistakes during this process. I appreciate any feedback you may have, and let me know if any changes are required. Thank You!