Fix input handling to enforce numeric values #1
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.
This pull request addresses an issue with input handling in the project. Previously, inputs were being processed as strings, which caused problems when numeric values were expected.
Changes Made:
Updated the input processing logic to enforce numeric values where required.
Ensured that inputs are validated and converted to the appropriate numeric type before further processing.
Impact:
These changes ensure that inputs are correctly interpreted as numeric values, improving the accuracy and reliability of the project.
Additional Information:
we were getting a value error because you wrote text_input() function in streamlitapi.py for text input file but in your your code for age, fare, sibling, parch input must be a number only and your code was not converting the text input value into a number.
I used numeric_input() function available in streamlit package.
The issue has been resolved now.

