Asankilp commited on
Commit
ea6b1d2
·
1 Parent(s): 7963fca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -240,6 +240,7 @@ if __name__ == "__main__":
240
  parser.add_argument('-ft', '--f0_filter_threshold', type=float, default=0.05,
241
  help='F0过滤阈值,只有使用crepe时有效. 数值范围从0-1. 降低该值可减少跑调概率,但会增加哑音')
242
  args = parser.parse_args()
 
243
  for info in models_info:
244
  config_path = info['config_path']
245
  model_path = info['model_path']
@@ -334,24 +335,6 @@ if __name__ == "__main__":
334
  cl_num, lg_num, lgr_num, f0_predictor, enhancer_adaptive_key, cr_threshold], [vc_output1, vc_output2])
335
  vc_submit2.click(vc_fn2, [sid, vc_input3, vc_transform, auto_f0, cluster_ratio, slice_db, noise_scale, pad_seconds, cl_num,
336
  lg_num, lgr_num, text2tts, tts_rate, tts_voice, f0_predictor, enhancer_adaptive_key, cr_threshold], [vc_output1, vc_output2])
337
- # gr.Examples(
338
- # examples=example,
339
- # inputs=[textbox, char_dropdown, language_dropdown,
340
- # duration_slider, symbol_input],
341
- # outputs=[text_output, audio_output],
342
- # fn=tts_fn
343
- # )
344
- for category, link in others.items():
345
- with gr.TabItem(category):
346
- gr.Markdown(
347
- f'''
348
- <center>
349
- <h2>Click to Go</h2>
350
- <a href="{link}">
351
- <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-xl-dark.svg"
352
- </a>
353
- </center>
354
- '''
355
- )
356
 
357
  app.queue(concurrency_count=3).launch(show_api=False, share=args.share)
 
240
  parser.add_argument('-ft', '--f0_filter_threshold', type=float, default=0.05,
241
  help='F0过滤阈值,只有使用crepe时有效. 数值范围从0-1. 降低该值可减少跑调概率,但会增加哑音')
242
  args = parser.parse_args()
243
+ categories = ['Gochiusa']
244
  for info in models_info:
245
  config_path = info['config_path']
246
  model_path = info['model_path']
 
335
  cl_num, lg_num, lgr_num, f0_predictor, enhancer_adaptive_key, cr_threshold], [vc_output1, vc_output2])
336
  vc_submit2.click(vc_fn2, [sid, vc_input3, vc_transform, auto_f0, cluster_ratio, slice_db, noise_scale, pad_seconds, cl_num,
337
  lg_num, lgr_num, text2tts, tts_rate, tts_voice, f0_predictor, enhancer_adaptive_key, cr_threshold], [vc_output1, vc_output2])
338
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
 
340
  app.queue(concurrency_count=3).launch(show_api=False, share=args.share)