YanTianlong commited on
Commit
82f7dcd
·
1 Parent(s): e12e0ab

Update app.py

Browse files

删除Diagnostics这个tab

Files changed (1) hide show
  1. app.py +0 -40
app.py CHANGED
@@ -1232,46 +1232,6 @@ with gr.Blocks(title="VoiceGate", fill_width=True) as demo:
1232
  ],
1233
  )
1234
 
1235
- with gr.Tab("Diagnostics"):
1236
- asr_audio = gr.Audio(
1237
- label="Test audio",
1238
- type="filepath",
1239
- waveform_options=VOICEGATE_WAVEFORM_OPTIONS,
1240
- )
1241
- target_language = gr.Dropdown(
1242
- label="Target language",
1243
- choices=TARGET_LANGUAGES,
1244
- value="English",
1245
- )
1246
- diagnostic_tts_trim_start = gr.Slider(
1247
- label="TTS segment trim start",
1248
- minimum=0.0,
1249
- maximum=1.0,
1250
- value=0.0,
1251
- step=0.05,
1252
- )
1253
- with gr.Row():
1254
- prepare_run = gr.Button("Prepare")
1255
- prepare_status_run = gr.Button("Prepare Status")
1256
- gpu_run = gr.Button("GPU")
1257
- comfy_run = gr.Button("ComfyUI")
1258
- melband_run = gr.Button("MelBand")
1259
- voxcpm_run = gr.Button("VoxCPM TTS")
1260
- asr_run = gr.Button("ASR")
1261
- full_run = gr.Button("Full VoiceGate")
1262
- output = gr.Textbox(label="Status", lines=28)
1263
- prepare_run.click(fn=prepare_runtime, outputs=output)
1264
- prepare_status_run.click(fn=prepare_status, outputs=output)
1265
- gpu_run.click(fn=gpu_smoke_test, outputs=output)
1266
- comfy_run.click(fn=comfy_runtime_test, outputs=output)
1267
- melband_run.click(fn=melband_gpu_test, outputs=output)
1268
- voxcpm_run.click(fn=voxcpm_tts_gpu_test, outputs=output)
1269
- asr_run.click(fn=asr_gpu_test, inputs=asr_audio, outputs=output)
1270
- full_run.click(
1271
- fn=full_voicegate_gpu_test,
1272
- inputs=[asr_audio, target_language, diagnostic_tts_trim_start],
1273
- outputs=output,
1274
- )
1275
 
1276
 
1277
  if __name__ == "__main__":
 
1232
  ],
1233
  )
1234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1235
 
1236
 
1237
  if __name__ == "__main__":