Skip to content
Snippets Groups Projects
Unverified Commit 817fcd7a authored by Marcin Wątroba's avatar Marcin Wątroba
Browse files

Add Base service improvement

parent 48f8f5ac
No related branches found
No related tags found
1 merge request!10Feature/add auth asr service
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
import os import os
import traceback
import uuid import uuid
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from pathlib import Path from pathlib import Path
...@@ -36,7 +37,9 @@ class AsrProcessor(ABC): ...@@ -36,7 +37,9 @@ class AsrProcessor(ABC):
result_object = jsonify( result_object = jsonify(
{"transcription": transcription.words, "full_text": transcription.full_text} {"transcription": transcription.words, "full_text": transcription.full_text}
) )
except: except Exception as exception:
print(exception)
traceback.print_exc()
result_object = jsonify({"error": "Error on asr processing"}) result_object = jsonify({"error": "Error on asr processing"})
else: else:
result_object = jsonify({"error": "Error on asr processing"}) result_object = jsonify({"error": "Error on asr processing"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment