-
Notifications
You must be signed in to change notification settings - Fork 121
Improved Error Handling #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
To get the error message that I updated in the code, you can follow these steps: Scenario 1: File Loading Error If there's an issue loading the CSV file (e.g., it's missing, corrupted, or not a valid CSV file), the st.error function will display a message like: lua Copy code An error occurred while loading data: <specific error message> The <specific error message> is the exact Python exception raised by the error, such as FileNotFoundError, PermissionError, ParserError or pd.errors.EmptyDataError. Scenario 2: Prediction Error If an error occurs during the prediction process (e.g., model input mismatch or other issues during prediction), the st.error function will display: go Copy code An error occurred during prediction: <specific error message> This will also show the specific Python error encountered, such as ValueError or TypeError.
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊
@github-actions
github-actions
bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to Our repository.🎊 Thank you so much for taking the time to point this out.
🎉 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! 🚀
Uh oh!
There was an error while loading. Please reload this page.
To get the error message that I updated in the code, you can follow these steps:
Resolved Issue: #378
File Loading Error
If there's an issue loading the CSV file (e.g., it's missing, corrupted, or not a valid CSV file), the st.error function will display a message like: An error occurred while loading data: specific error message
The specific error message is the exact Python exception raised by the error, such as FileNotFoundError, PermissionError, ParserError or pd.errors.EmptyDataError.
Screenshot:
Screenshot_parsererror