Webui #1

Merged
steve-admin merged 16 commits from webui into main 2026-10-16 18:19:21 +01:00
Showing only changes of commit 042c438b8d - Show all commits
+17 -18
View File
@@ -806,24 +806,6 @@ with gr.Blocks(title="Audio-demo pipeline studio") as demo:
save_char_btn = gr.Button("Save as new character (status: draft)") save_char_btn = gr.Button("Save as new character (status: draft)")
save_char_status = gr.Markdown() save_char_status = gr.Markdown()
with gr.Row():
with gr.Column():
gr.Markdown(
"## 5. Sound effects (MOSS-SoundEffect)\n"
"Text-only ambience/SFX generation - no reference audio or character "
"voice involved, a separate model from the voice pipeline above."
)
sfx_description = gr.Textbox(
label="Description",
placeholder=(
'e.g. "A door creaking open slowly, then closing with a soft thud." '
'or "A busy outdoor market with distant chatter and footsteps."'
),
lines=2,
)
sfx_btn = gr.Button("Generate sound effect", variant="primary")
sfx_audio = gr.Audio(label="Generated sound effect", type="filepath")
strip_btn.click(strip_vocals, inputs=[input_audio], outputs=[vocals_out, no_vocals_out]) strip_btn.click(strip_vocals, inputs=[input_audio], outputs=[vocals_out, no_vocals_out])
use_vocals_btn.click( use_vocals_btn.click(
use_as_reference, inputs=[vocals_out, history_state], use_as_reference, inputs=[vocals_out, history_state],
@@ -862,6 +844,23 @@ with gr.Blocks(title="Audio-demo pipeline studio") as demo:
inputs=[new_char_name, new_char_role, new_char_prose, gen_language, current_ref_audio, history_state], inputs=[new_char_name, new_char_role, new_char_prose, gen_language, current_ref_audio, history_state],
outputs=[save_char_status], outputs=[save_char_status],
) )
with gr.Tab("Sound Effects"):
gr.Markdown(
"# Sound effects (MOSS-SoundEffect)\n"
"Text-only ambience/SFX generation - a separate model from the "
"voice pipeline in Pipeline Studio, no reference audio or "
"character voice involved."
)
sfx_description = gr.Textbox(
label="Description",
placeholder=(
'e.g. "A door creaking open slowly, then closing with a soft thud." '
'or "A busy outdoor market with distant chatter and footsteps."'
),
lines=2,
)
sfx_btn = gr.Button("Generate sound effect", variant="primary")
sfx_audio = gr.Audio(label="Generated sound effect", type="filepath")
sfx_btn.click(generate_sound_effect, inputs=[sfx_description], outputs=[sfx_audio]) sfx_btn.click(generate_sound_effect, inputs=[sfx_description], outputs=[sfx_audio])
with gr.Tab("Characters"): with gr.Tab("Characters"):