From 9d95e07d8252734ab89202900a3b594ea2bb3fc3 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 26 Oct 2021 16:04:50 -0400 Subject: [PATCH] Style fix --- app/app.py | 4 ++-- app/templates/index.html | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/app.py b/app/app.py index e3a809e..17282d2 100644 --- a/app/app.py +++ b/app/app.py @@ -496,7 +496,7 @@ def create_app(args): name: file type: file required: true - description: file to translate + description: File to translate - in: formData name: source schema: @@ -573,7 +573,7 @@ def create_app(args): file = request.files['file'] if not file: - abort(400, description="Invalid request: missing q parameter") + abort(400, description="Invalid request: missing file parameter") if not source_lang: abort(400, description="Invalid request: missing source parameter") if not target_lang: diff --git a/app/templates/index.html b/app/templates/index.html index 24bb0f0..a5d1d5d 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -105,7 +105,7 @@

Translation API

-
+
@@ -190,12 +190,10 @@
-
-
-
-

[[ inputFile.name ]]

-
-
+
+
+
+ [[ inputFile.name ]] @@ -216,7 +214,7 @@
-
+