Spaces:
Runtime error
Runtime error
Update app_multi.py
Browse files- app_multi.py +3 -23
app_multi.py
CHANGED
|
@@ -23,8 +23,7 @@ from infer_pack.models import (
|
|
| 23 |
SynthesizerTrnMs768NSFsid_nono
|
| 24 |
)
|
| 25 |
from vc_infer_pipeline import VC
|
| 26 |
-
|
| 27 |
-
|
| 28 |
# Reference: https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L21 # noqa
|
| 29 |
in_hf_space = getenv('SYSTEM') == 'spaces'
|
| 30 |
|
|
@@ -40,27 +39,6 @@ arg_parser.add_argument(
|
|
| 40 |
default=getenv('RVC_MULTI_CFG', 'multi_config.json'),
|
| 41 |
help='path to config file (default: multi_config.json)'
|
| 42 |
)
|
| 43 |
-
arg_parser.add_argument(
|
| 44 |
-
'--bind',
|
| 45 |
-
default=getenv('RVC_LISTEN_ADDR', '127.0.0.1'),
|
| 46 |
-
help='gradio server listen address (default: 127.0.0.1)'
|
| 47 |
-
)
|
| 48 |
-
arg_parser.add_argument(
|
| 49 |
-
'--port',
|
| 50 |
-
default=getenv('RVC_LISTEN_PORT', '7860'),
|
| 51 |
-
type=int,
|
| 52 |
-
help='gradio server listen port (default: 7860)'
|
| 53 |
-
)
|
| 54 |
-
arg_parser.add_argument(
|
| 55 |
-
'--share',
|
| 56 |
-
action='store_true',
|
| 57 |
-
help='let gradio create a public link for you'
|
| 58 |
-
)
|
| 59 |
-
arg_parser.add_argument(
|
| 60 |
-
'--api',
|
| 61 |
-
action='store_true',
|
| 62 |
-
help='enable api endpoint'
|
| 63 |
-
)
|
| 64 |
arg_parser.add_argument(
|
| 65 |
'--cache-examples',
|
| 66 |
action='store_true',
|
|
@@ -141,6 +119,8 @@ for model_name in multi_cfg.get('models'):
|
|
| 141 |
|
| 142 |
print(f'Models loaded: {len(loaded_models)}')
|
| 143 |
|
|
|
|
|
|
|
| 144 |
# Edge TTS speakers
|
| 145 |
tts_speakers_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices()) # noqa
|
| 146 |
|
|
|
|
| 23 |
SynthesizerTrnMs768NSFsid_nono
|
| 24 |
)
|
| 25 |
from vc_infer_pipeline import VC
|
| 26 |
+
|
|
|
|
| 27 |
# Reference: https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L21 # noqa
|
| 28 |
in_hf_space = getenv('SYSTEM') == 'spaces'
|
| 29 |
|
|
|
|
| 39 |
default=getenv('RVC_MULTI_CFG', 'multi_config.json'),
|
| 40 |
help='path to config file (default: multi_config.json)'
|
| 41 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
arg_parser.add_argument(
|
| 43 |
'--cache-examples',
|
| 44 |
action='store_true',
|
|
|
|
| 119 |
|
| 120 |
print(f'Models loaded: {len(loaded_models)}')
|
| 121 |
|
| 122 |
+
|
| 123 |
+
|
| 124 |
# Edge TTS speakers
|
| 125 |
tts_speakers_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices()) # noqa
|
| 126 |
|