Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 38862d9e
authored
Jan 03, 2025
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]域名映射
1 parent
bf6132af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
funasr_service.py
funasr_service.py
View file @
38862d9
...
@@ -156,9 +156,6 @@ def replace_domain_in_url(url):
...
@@ -156,9 +156,6 @@ def replace_domain_in_url(url):
return
url
return
url
print
(
replace_domain_in_url
(
"https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17342363233946695_1734235809700833.mp3"
))
def
deal_worker
(
task_id
:
str
):
def
deal_worker
(
task_id
:
str
):
"""
"""
要执行的函数,在子进程中运行
要执行的函数,在子进程中运行
...
@@ -182,6 +179,7 @@ def deal_worker(task_id: str):
...
@@ -182,6 +179,7 @@ def deal_worker(task_id: str):
if
url
==
""
or
len
(
url
)
<
1
or
not
url
.
startswith
(
"http"
):
if
url
==
""
or
len
(
url
)
<
1
or
not
url
.
startswith
(
"http"
):
funasr_db
.
update_ali_asr_model_res_skip
(
task_id
)
funasr_db
.
update_ali_asr_model_res_skip
(
task_id
)
return
return
url
=
replace_domain_in_url
(
url
)
log
.
info
(
f
"Worker {task_id} is running... url:{url}"
)
log
.
info
(
f
"Worker {task_id} is running... url:{url}"
)
consuming_start_time
=
time
.
perf_counter
()
consuming_start_time
=
time
.
perf_counter
()
# 解析音频
# 解析音频
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment