Wrap float() casts for general_threshold and character_threshold in try/except so malformed values return a structured 400 error instead of an uncaught ValueError causing a 500. Addresses review feedback on PR #114.
Wrap float() casts for general_threshold and character_threshold in try/except so malformed values return a structured 400 error instead of an uncaught ValueError causing a 500. Addresses review feedback on PR #114.