From 94f87cdac12fd5c6a639616b38ee58c37975e131 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 26 Mar 2024 09:24:16 -0400 Subject: [PATCH] Documentataion: /detect returns an integer 0-100, not a float --- libretranslate/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libretranslate/app.py b/libretranslate/app.py index 4ea7be0..74d53c8 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -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