Spaces:
Running on Zero
Running on Zero
modified UI
Browse files
app.py
CHANGED
|
@@ -527,44 +527,47 @@ with gr.Blocks(
|
|
| 527 |
(https://github.com/siddhu001/espnet/tree/sds_demo_recipe/egs2/TEMPLATE/sds1#how-to-use).
|
| 528 |
"""
|
| 529 |
)
|
| 530 |
-
input_text = gr.Textbox(
|
| 531 |
-
label="LLM prompt",
|
| 532 |
-
visible=True,
|
| 533 |
-
interactive=True,
|
| 534 |
-
value=default_instruct,
|
| 535 |
-
)
|
| 536 |
with gr.Row():
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 557 |
)
|
| 558 |
-
E2Eradio = gr.Radio(
|
| 559 |
-
choices=["mini-omni"],
|
| 560 |
-
label="Choose E2E model:",
|
| 561 |
-
value="mini-omni",
|
| 562 |
-
visible=False,
|
| 563 |
-
)
|
| 564 |
gr.Examples(
|
| 565 |
examples=[[row[1], row[2]] for row in examples],
|
| 566 |
inputs=[input_text, radio],
|
| 567 |
label="Usage examples",
|
|
|
|
| 568 |
)
|
| 569 |
with gr.Row():
|
| 570 |
with gr.Column(scale=1):
|
|
|
|
| 527 |
(https://github.com/siddhu001/espnet/tree/sds_demo_recipe/egs2/TEMPLATE/sds1#how-to-use).
|
| 528 |
"""
|
| 529 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 530 |
with gr.Row():
|
| 531 |
+
with gr.Column(scale=1):
|
| 532 |
+
input_text = gr.Textbox(
|
| 533 |
+
label="LLM prompt",
|
| 534 |
+
visible=True,
|
| 535 |
+
interactive=True,
|
| 536 |
+
value=default_instruct,
|
| 537 |
+
)
|
| 538 |
+
with gr.Column(scale=1):
|
| 539 |
+
type_radio = gr.Radio(
|
| 540 |
+
choices=["Cascaded"],
|
| 541 |
+
label="Choose type of Spoken Dialog:",
|
| 542 |
+
value="Cascaded",
|
| 543 |
+
)
|
| 544 |
+
ASR_radio = gr.Radio(
|
| 545 |
+
choices=ASR_options,
|
| 546 |
+
label="Choose ASR:",
|
| 547 |
+
value=ASR_name,
|
| 548 |
+
)
|
| 549 |
+
LLM_radio = gr.Radio(
|
| 550 |
+
choices=LLM_options,
|
| 551 |
+
label="Choose LLM:",
|
| 552 |
+
value=LLM_name,
|
| 553 |
+
)
|
| 554 |
+
with gr.Column(scale=0.5):
|
| 555 |
+
radio = gr.Radio(
|
| 556 |
+
choices=TTS_display_names,
|
| 557 |
+
label="Choose TTS:",
|
| 558 |
+
value=TTS_reverse_map[TTS_name],
|
| 559 |
+
)
|
| 560 |
+
E2Eradio = gr.Radio(
|
| 561 |
+
choices=["mini-omni"],
|
| 562 |
+
label="Choose E2E model:",
|
| 563 |
+
value="mini-omni",
|
| 564 |
+
visible=False,
|
| 565 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 566 |
gr.Examples(
|
| 567 |
examples=[[row[1], row[2]] for row in examples],
|
| 568 |
inputs=[input_text, radio],
|
| 569 |
label="Usage examples",
|
| 570 |
+
example_labels=[row[0] for row in examples],
|
| 571 |
)
|
| 572 |
with gr.Row():
|
| 573 |
with gr.Column(scale=1):
|