Spaces:
Sleeping
Sleeping
Update ui_client.py
Browse files- ui_client.py +20 -3
ui_client.py
CHANGED
@@ -406,8 +406,9 @@ with gr.Blocks(css=css) as interface:
|
|
406 |
"""
|
407 |
<p>WavJourney Pipeline:<p/>
|
408 |
<ul>
|
|
|
409 |
<li>Stage 1: generate the audio script based on the input text instruction (the default language is English, but you can actually type in your own language).</li>
|
410 |
-
<li>Stage 2: Select the suitable voice in the multilingual voice preset for the each character in the audio script & generate audio
|
411 |
</ul>
|
412 |
|
413 |
|
@@ -463,6 +464,22 @@ with gr.Blocks(css=css) as interface:
|
|
463 |
loading_icon = gr.HTML(loading_icon_html)
|
464 |
share_button = gr.Button(value="Share to community", elem_id="share-btn")
|
465 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
# add examples
|
467 |
from examples.examples import examples as WJExamples
|
468 |
def example_fn(idx, _text_input):
|
@@ -483,7 +500,7 @@ with gr.Blocks(css=css) as interface:
|
|
483 |
|
484 |
# System Voice Presets
|
485 |
gr.Markdown(label='System Voice Presets', value='# System Voice Presets')
|
486 |
-
with gr.Accordion("Click to
|
487 |
gr.Markdown('Supported Language: English, Chinese, French, German, Hindi, Italian, Japanese, Korean')
|
488 |
|
489 |
system_markdown_voice_presets = gr.Dataframe(label='System Voice Presets', headers=VOICE_PRESETS_HEADERS,
|
@@ -597,5 +614,5 @@ with gr.Blocks(css=css) as interface:
|
|
597 |
# debug only
|
598 |
# print_state_btn = gr.Button(value='Print State')
|
599 |
# print_state_btn.click(fn=lambda state, state2: print(state, state2), inputs=[ui_state, selected_voice_presets])
|
600 |
-
interface.queue(concurrency_count=
|
601 |
interface.launch()
|
|
|
406 |
"""
|
407 |
<p>WavJourney Pipeline:<p/>
|
408 |
<ul>
|
409 |
+
<li>Stage 0: (optional) add your customized voice preset for more personalized audio creation experience.</li>
|
410 |
<li>Stage 1: generate the audio script based on the input text instruction (the default language is English, but you can actually type in your own language).</li>
|
411 |
+
<li>Stage 2: Select the suitable voice in the multilingual voice preset for the each character in the audio script & generate audio.</li>
|
412 |
</ul>
|
413 |
|
414 |
|
|
|
464 |
loading_icon = gr.HTML(loading_icon_html)
|
465 |
share_button = gr.Button(value="Share to community", elem_id="share-btn")
|
466 |
|
467 |
+
gr.HTML(
|
468 |
+
"""
|
469 |
+
<p>Share your generations with the community by clicking the share icon at the bottom right the generated audio!<p/>
|
470 |
+
<p>
|
471 |
+
Useful tips for prompting WavJourney:
|
472 |
+
<p/>
|
473 |
+
<ul>
|
474 |
+
<li>You can use vague or specific descriptions, or a combination of them. For example: "male speech about pizze" or "a man is saying: I love pizza!"</li>
|
475 |
+
<li> You can control the length of audio script by simply adding the restriction. For example: "generate an audio script around 10-15 lines (max length has been set to 30)"</li>
|
476 |
+
<li> You can specify the language of the speaker. For example: "a boy is playing with a girl, boy's speech is in Chinese while girl's speech in Japanese"</li>
|
477 |
+
<li> Explore more prompting techniques by yourself! 🤗</li>
|
478 |
+
</ul>
|
479 |
+
|
480 |
+
"""
|
481 |
+
)
|
482 |
+
|
483 |
# add examples
|
484 |
from examples.examples import examples as WJExamples
|
485 |
def example_fn(idx, _text_input):
|
|
|
500 |
|
501 |
# System Voice Presets
|
502 |
gr.Markdown(label='System Voice Presets', value='# System Voice Presets')
|
503 |
+
with gr.Accordion("Click to check system speakers", open=False):
|
504 |
gr.Markdown('Supported Language: English, Chinese, French, German, Hindi, Italian, Japanese, Korean')
|
505 |
|
506 |
system_markdown_voice_presets = gr.Dataframe(label='System Voice Presets', headers=VOICE_PRESETS_HEADERS,
|
|
|
614 |
# debug only
|
615 |
# print_state_btn = gr.Button(value='Print State')
|
616 |
# print_state_btn.click(fn=lambda state, state2: print(state, state2), inputs=[ui_state, selected_voice_presets])
|
617 |
+
interface.queue(concurrency_count=1, max_size=20)
|
618 |
interface.launch()
|