Spaces:
Runtime error
Runtime error
Update app_multi.py
Browse files- app_multi.py +6 -7
app_multi.py
CHANGED
|
@@ -64,7 +64,7 @@ app_css = '''
|
|
| 64 |
'''
|
| 65 |
|
| 66 |
app = gr.Blocks(
|
| 67 |
-
theme=gr.themes.
|
| 68 |
css=app_css,
|
| 69 |
analytics_enabled=False
|
| 70 |
)
|
|
@@ -124,8 +124,6 @@ for model_name in multi_cfg.get('models'):
|
|
| 124 |
|
| 125 |
print(f'Models loaded: {len(loaded_models)}')
|
| 126 |
|
| 127 |
-
|
| 128 |
-
|
| 129 |
# Edge TTS speakers
|
| 130 |
tts_speakers_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices()) # noqa
|
| 131 |
|
|
@@ -147,6 +145,7 @@ def vc_func(
|
|
| 147 |
(audio_samp, audio_npy) = input_audio
|
| 148 |
|
| 149 |
# https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L49
|
|
|
|
| 150 |
if (audio_npy.shape[0] / audio_samp) > 30 and in_hf_space:
|
| 151 |
return (None, 'Input audio is longer than 30 secs.')
|
| 152 |
|
|
@@ -295,9 +294,9 @@ async def _example_edge_tts(
|
|
| 295 |
|
| 296 |
with app:
|
| 297 |
gr.Markdown(
|
| 298 |
-
'##
|
| 299 |
-
'
|
| 300 |
-
'
|
| 301 |
)
|
| 302 |
|
| 303 |
with gr.Row():
|
|
@@ -467,4 +466,4 @@ app.queue(
|
|
| 467 |
concurrency_count=1,
|
| 468 |
max_size=20,
|
| 469 |
api_open=args.api
|
| 470 |
-
).launch()
|
|
|
|
| 64 |
'''
|
| 65 |
|
| 66 |
app = gr.Blocks(
|
| 67 |
+
theme=gr.themes.Soft(),
|
| 68 |
css=app_css,
|
| 69 |
analytics_enabled=False
|
| 70 |
)
|
|
|
|
| 124 |
|
| 125 |
print(f'Models loaded: {len(loaded_models)}')
|
| 126 |
|
|
|
|
|
|
|
| 127 |
# Edge TTS speakers
|
| 128 |
tts_speakers_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices()) # noqa
|
| 129 |
|
|
|
|
| 145 |
(audio_samp, audio_npy) = input_audio
|
| 146 |
|
| 147 |
# https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L49
|
| 148 |
+
# Can be change well, we will see
|
| 149 |
if (audio_npy.shape[0] / audio_samp) > 30 and in_hf_space:
|
| 150 |
return (None, 'Input audio is longer than 30 secs.')
|
| 151 |
|
|
|
|
| 294 |
|
| 295 |
with app:
|
| 296 |
gr.Markdown(
|
| 297 |
+
'## A simplistic Web interface\n'
|
| 298 |
+
'RVC interface, project based on [RVC-WebUI] (https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI)' # thx noqa
|
| 299 |
+
'A lot of inspiration from what\'s already out there, including [zomehwh/rvc-models](https://huggingface.co/spaces/zomehwh/rvc-models) & [DJQmUKV/rvc-inference] (https://huggingface.co/spaces/DJQmUKV/rvc-inference).\n ' # thx noqa
|
| 300 |
)
|
| 301 |
|
| 302 |
with gr.Row():
|
|
|
|
| 466 |
concurrency_count=1,
|
| 467 |
max_size=20,
|
| 468 |
api_open=args.api
|
| 469 |
+
).launch()
|