Merge pull request #603 from zachdecook/detect-integer

Documentation: /detect returns an integer 0-100, not a float
This commit is contained in:
Piero Toffanin 2024-03-26 10:47:43 -04:00 committed by GitHub
commit 2007ea87e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -858,7 +858,7 @@ def create_app(args):
name: q
schema:
type: string
example: Hello world!
example: What language is this?
required: true
description: Text to detect
- in: formData
@ -879,11 +879,11 @@ def create_app(args):
properties:
confidence:
type: number
format: float
format: integer
minimum: 0
maximum: 1
maximum: 100
description: Confidence value
example: 0.6
example: 100
language:
type: string
description: Language code