Xubo-Liu commited on
Commit
fc277e9
1 Parent(s): 7b012f0

Update ui_client.py

Browse files
Files changed (1) hide show
  1. ui_client.py +16 -2
ui_client.py CHANGED
@@ -402,6 +402,18 @@ with gr.Blocks(css=css) as interface:
402
  """
403
  )
404
 
 
 
 
 
 
 
 
 
 
 
 
 
405
 
406
 
407
  system_voice_presets = get_system_voice_presets()
@@ -422,7 +434,7 @@ with gr.Blocks(css=css) as interface:
422
  text_input = gr.Textbox(
423
  label='Input Text Instruction',
424
  lines=2,
425
- placeholder="Input instruction here (e.g., an audio introduction to quantum mechanics).",
426
  value=text_input_value,
427
  elem_id="prompt-in",)
428
 
@@ -472,6 +484,8 @@ with gr.Blocks(css=css) as interface:
472
  # System Voice Presets
473
  gr.Markdown(label='System Voice Presets', value='# System Voice Presets')
474
  with gr.Accordion("Click to see system speakers", open=False):
 
 
475
  system_markdown_voice_presets = gr.Dataframe(label='System Voice Presets', headers=VOICE_PRESETS_HEADERS,
476
  value=system_voice_presets)
477
  # User Voice Preset Related
@@ -584,4 +598,4 @@ with gr.Blocks(css=css) as interface:
584
  # print_state_btn = gr.Button(value='Print State')
585
  # print_state_btn.click(fn=lambda state, state2: print(state, state2), inputs=[ui_state, selected_voice_presets])
586
  interface.queue(concurrency_count=10, max_size=20)
587
- interface.launch()
 
402
  """
403
  )
404
 
405
+ gr.HTML(
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</li>
411
+ </ul>
412
+
413
+
414
+ """
415
+ )
416
+
417
 
418
 
419
  system_voice_presets = get_system_voice_presets()
 
434
  text_input = gr.Textbox(
435
  label='Input Text Instruction',
436
  lines=2,
437
+ placeholder="Input instruction here (e.g., An introduction to AI-assisted audio content creation).",
438
  value=text_input_value,
439
  elem_id="prompt-in",)
440
 
 
484
  # System Voice Presets
485
  gr.Markdown(label='System Voice Presets', value='# System Voice Presets')
486
  with gr.Accordion("Click to see system speakers", open=False):
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,
490
  value=system_voice_presets)
491
  # User Voice Preset Related
 
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=10, max_size=20)
601
+ interface.launch()