mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-22 15:16:30 +00:00
Documentataion: /detect returns an integer 0-100, not a float
This commit is contained in:
parent
887b282c6a
commit
94f87cdac1
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue