input type="number"
in HTML where only integers required
Instead of
input type="text"
Though you are converting into integer in predict function, but if anyone will enter string value example : 'abc' it will not convert into integer and application will throw Internal Server Error.
I would suggest to use
input type="number" in HTML where only integers required
Instead of
input type="text"
Though you are converting into integer in predict function, but if anyone will enter string value example : 'abc' it will not convert into integer and application will throw Internal Server Error.