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 92a9f2ed
authored
Mar 23, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]参数优化
1 parent
8a00fcc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
funasr_service.py
funasr_service.py
View file @
92a9f2e
...
@@ -94,7 +94,8 @@ def deal_worker(task_id: str):
...
@@ -94,7 +94,8 @@ def deal_worker(task_id: str):
if
output_data
is
not
None
:
if
output_data
is
not
None
:
return
return
exception_msg
=
sql_res
[
0
][
"exception_msg"
]
exception_msg
=
sql_res
[
0
][
"exception_msg"
]
if
exception_msg
is
not
None
and
exception_msg
==
"list index out of range"
:
if
exception_msg
is
not
None
and
exception_msg
==
"list index out of range"
\
and
exception_msg
==
"Unspecified internal error."
:
return
return
url
=
sql_res
[
0
][
"file_url"
]
url
=
sql_res
[
0
][
"file_url"
]
if
url
==
""
or
len
(
url
)
<
1
or
not
url
.
startswith
(
"http"
):
if
url
==
""
or
len
(
url
)
<
1
or
not
url
.
startswith
(
"http"
):
...
...
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