Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asr-benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcin Wątroba
asr-benchmarks
Merge requests
!10
Feature/add auth asr service
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/add auth asr service
feature/add_auth_asr_service
into
main
Overview
1
Commits
17
Pipelines
0
Changes
1
Merged
Feature/add auth asr service
Marcin Wątroba
requested to merge
feature/add_auth_asr_service
into
main
Aug 16, 2021
Overview
1
Commits
17
Pipelines
0
Changes
1
Created by: markowanga
0
0
Merge request reports
Viewing commit
817fcd7a
Prev
Next
Show latest version
1 file
+
4
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
817fcd7a
Add Base service improvement
· 817fcd7a
Marcin Wątroba
authored
Aug 16, 2021
sziszapangma/integration/base_asr_service/asr_processor.py
+
4
−
1
View file @ 817fcd7a
Edit in single-file editor
Open in Web IDE
Show full file
import
os
import
traceback
import
uuid
from
abc
import
ABC
,
abstractmethod
from
pathlib
import
Path
@@ -36,7 +37,9 @@ class AsrProcessor(ABC):
result_object
=
jsonify
(
{
"
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
"
})
else
:
result_object
=
jsonify
({
"
error
"
:
"
Error on asr processing
"
})
Loading