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 01cd9e2d
authored
Aug 16, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]subfix
1 parent
6f3ca249
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
requirements.txt
subfix/cli.py
subfix/requirements.txt
setup.py → subfix/setup.py
subfix/webui/webui.py
requirements.txt
deleted
100644 → 0
View file @
6f3ca24
No preview for this file type
subfix/cli.py
View file @
01cd9e2
...
...
@@ -61,7 +61,7 @@ def cli():
parser_webui
.
add_argument
(
'--load_list'
,
default
=
"None"
,
help
=
'source file, like demo.list'
)
parser_webui
.
add_argument
(
'--json_key_text'
,
default
=
"text"
,
type
=
str
,
help
=
'the text key name in json, Default: text'
)
parser_webui
.
add_argument
(
'--json_key_path'
,
default
=
"wav_path"
,
type
=
str
,
help
=
'the path key name in json, Default: wav_path'
)
parser_webui
.
add_argument
(
'--g_batch'
,
default
=
1
0
,
type
=
int
,
help
=
'max number g_batch wav to display, Default: 10'
)
parser_webui
.
add_argument
(
'--g_batch'
,
default
=
2
0
,
type
=
int
,
help
=
'max number g_batch wav to display, Default: 10'
)
parser_webui
.
add_argument
(
'--webui_language'
,
default
=
"en"
,
type
=
str
,
help
=
'webui language: en or zh, Default: en'
)
parser_webui
.
add_argument
(
'--force_delete'
,
default
=
"True"
,
type
=
str
,
help
=
'delete file in disk while delete items, True or False, Default: True'
)
parser_webui
.
set_defaults
(
func
=
handle_webui
)
...
...
subfix/requirements.txt
0 → 100644
View file @
01cd9e2
funasr
modelscope
pydantic
fastapi
uvicorn
requests
\ No newline at end of file
setup.py
→
s
ubfix/s
etup.py
View file @
01cd9e2
...
...
@@ -8,7 +8,7 @@ import pkg_resources
from
shutil
import
rmtree
from
setuptools
import
find_packages
,
setup
,
Command
NAME
=
'
SubF
ix'
NAME
=
'
subf
ix'
DESCRIPTION
=
'A tool to read dataset and crate dataset to train TTS.'
URL
=
'https://github.com/cronrpc/SubFix'
EMAIL
=
'cronrpc'
...
...
@@ -36,6 +36,8 @@ setup(
author_email
=
EMAIL
,
python_requires
=
REQUIRES_PYTHON
,
url
=
URL
,
# packages=find_packages(where='./subfix'), # 指定包所在目录
# package_dir={'subfix': './subfix'}, # 映射包名到目录
py_modules
=
[
'subfix'
],
install_requires
=
REQUIRED
+
[
...
...
subfix/webui/webui.py
View file @
01cd9e2
...
...
@@ -18,7 +18,7 @@ g_load_format = ""
g_max_json_index
=
0
g_index
=
0
g_batch
=
2
0
g_batch
=
1
0
g_text_list
=
[]
g_audio_list
=
[]
g_checkbox_list
=
[]
...
...
@@ -292,9 +292,8 @@ def set_global(load_json, load_list, json_key_text, json_key_path, batch, webui_
def
startwebui
(
args
):
set_global
(
args
.
load_json
,
args
.
load_list
,
args
.
json_key_text
,
args
.
json_key_path
,
args
.
g_batch
,
args
.
webui_language
,
args
.
force_delete
)
print
(
f
"g_batch=={g_batch}"
)
with
gr
.
Blocks
()
as
demo
:
with
gr
.
Row
():
...
...
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