Spaces:
Runtime error
Runtime error
MZhao-LEGION
commited on
Commit
•
f2c4c94
1
Parent(s):
7c2c5f5
fix autoplay
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ with gr.Blocks(css=customCSS) as demo:
|
|
18 |
with gr.Tab("Mimic", elem_id="tab-mimic"):
|
19 |
gr.Textbox(lines=1, placeholder="Coming Soon...", label="Choose sound to mimic:", elem_classes="wonder-card input_text", elem_id="mimic_input", interactive=False)
|
20 |
mimic_button = gr.Button("Mimic!", elem_id="mimic_button", elem_classes="main-button wonder-card")
|
21 |
-
audio_output = gr.Audio(label="输出音频", show_label=False, autoplay=
|
22 |
|
23 |
demo.load(
|
24 |
init_fn,
|
|
|
18 |
with gr.Tab("Mimic", elem_id="tab-mimic"):
|
19 |
gr.Textbox(lines=1, placeholder="Coming Soon...", label="Choose sound to mimic:", elem_classes="wonder-card input_text", elem_id="mimic_input", interactive=False)
|
20 |
mimic_button = gr.Button("Mimic!", elem_id="mimic_button", elem_classes="main-button wonder-card")
|
21 |
+
audio_output = gr.Audio(label="输出音频", show_label=False, autoplay=True, elem_id="audio_output", elem_classes="wonder-card")
|
22 |
|
23 |
demo.load(
|
24 |
init_fn,
|