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
Branches
1 merge request!10Feature/add auth asr service
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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment