test
Browse files
app.py
CHANGED
|
@@ -317,7 +317,8 @@ def build_demo():
|
|
| 317 |
["./drop_audiocaps_1.wav", "Remove the sound of several beeps."],
|
| 318 |
["./reorder_audiocaps_1.wav", "Switch the positions of the woman's voice and whistling."]
|
| 319 |
],
|
| 320 |
-
inputs=[audio_in, caption], # 对应上面列表的顺序:第一个是 Audio,第二个是 Textbox
|
|
|
|
| 321 |
)
|
| 322 |
with gr.Row():
|
| 323 |
num_steps = gr.Slider(10, 100, 50, step=1, label="Steps")
|
|
|
|
| 317 |
["./drop_audiocaps_1.wav", "Remove the sound of several beeps."],
|
| 318 |
["./reorder_audiocaps_1.wav", "Switch the positions of the woman's voice and whistling."]
|
| 319 |
],
|
| 320 |
+
inputs=[audio_in, caption], # 对应上面列表的顺序:第一个是 Audio,第二个是 Textbox
|
| 321 |
+
cache_examples=False, # ZeroGPU 环境建议设为 False,避免启动时耗时计算
|
| 322 |
)
|
| 323 |
with gr.Row():
|
| 324 |
num_steps = gr.Slider(10, 100, 50, step=1, label="Steps")
|