From 48f8f5acf367e5003f177ff0f14bcd265c95b24c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcin=20W=C4=85troba?= <markowanga@gmail.com>
Date: Mon, 16 Aug 2021 21:54:25 +0200
Subject: [PATCH] Add Base service improvement

---
 sziszapangma/integration/asr_processor.py                  | 7 +++++--
 sziszapangma/integration/base_asr_service/asr_processor.py | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/sziszapangma/integration/asr_processor.py b/sziszapangma/integration/asr_processor.py
index f6df63a..8d79b6a 100644
--- a/sziszapangma/integration/asr_processor.py
+++ b/sziszapangma/integration/asr_processor.py
@@ -25,8 +25,11 @@ class AsrWebClient(AsrProcessor):
 
     def call_recognise(self, file_path: str) -> Dict[str, Any]:
         files = {"file": open(file_path, "rb")}
-        headers = dict({'Authorization': f'Bearer {self._auth_token}'}) \
-            if self._auth_token is not None else dict()
+        headers = (
+            dict({"Authorization": f"Bearer {self._auth_token}"})
+            if self._auth_token is not None
+            else dict()
+        )
         res = requests.post(self._url, files=files, headers=headers)
         json_response = res.json()
         print(json_response)
diff --git a/sziszapangma/integration/base_asr_service/asr_processor.py b/sziszapangma/integration/base_asr_service/asr_processor.py
index 6cf478f..d6b84e0 100644
--- a/sziszapangma/integration/base_asr_service/asr_processor.py
+++ b/sziszapangma/integration/base_asr_service/asr_processor.py
@@ -49,7 +49,7 @@ class AsrProcessor(ABC):
             return None
 
     def health_check(self) -> Response:
-        return jsonify({'status': 'running'})
+        return jsonify({"status": "running"})
 
     def start_processor(self):
         app = Flask(__name__)
-- 
GitLab