Rejekts commited on
Commit
1236731
·
verified ·
1 Parent(s): 41aca01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -1203,7 +1203,7 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="rose",neutral_hue=
1203
  )
1204
  sr2 = gr.Radio(
1205
  label=i18n("目标采样率"),
1206
- choices=["40k", "48k"],
1207
  value="40k",
1208
  interactive=True,
1209
  visible=False
@@ -1347,24 +1347,24 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="rose",neutral_hue=
1347
  value=i18n("是"),
1348
  interactive=True,
1349
  )
1350
- with gr.Row():
1351
- download_model = gr.Button('5.Download Model')
1352
- with gr.Row():
1353
- model_files = gr.Files(label='Your Model and Index file can be downloaded here:')
1354
- download_model.click(fn=download_model_files, inputs=[exp_dir1], outputs=[model_files, info3])
1355
- with gr.Row():
1356
  pretrained_G14 = gr.Textbox(
1357
  label=i18n("加载预训练底模G路径"),
1358
  value="assets/pretrained_v2/f0G40k.pth",
1359
  interactive=True,
1360
- visible=False
1361
  )
1362
  pretrained_D15 = gr.Textbox(
1363
  label=i18n("加载预训练底模D路径"),
1364
  value="assets/pretrained_v2/f0D40k.pth",
1365
  interactive=True,
1366
- visible=False
1367
  )
 
 
 
 
 
 
1368
  sr2.change(
1369
  change_sr2,
1370
  [sr2, if_f0_3, version19],
@@ -1431,9 +1431,9 @@ with gr.Blocks(title="🔊",theme=gr.themes.Base(primary_hue="rose",neutral_hue=
1431
  )
1432
 
1433
  if config.iscolab:
1434
- app.queue(concurrency_count=511, max_size=1022).launch(share=True)
1435
  else:
1436
- app.queue(concurrency_count=511, max_size=1022).launch(
1437
  server_name="0.0.0.0",
1438
  inbrowser=not config.noautoopen,
1439
  server_port=config.listen_port,
 
1203
  )
1204
  sr2 = gr.Radio(
1205
  label=i18n("目标采样率"),
1206
+ choices=["40k", "32k"],
1207
  value="40k",
1208
  interactive=True,
1209
  visible=False
 
1347
  value=i18n("是"),
1348
  interactive=True,
1349
  )
 
 
 
 
 
 
1350
  pretrained_G14 = gr.Textbox(
1351
  label=i18n("加载预训练底模G路径"),
1352
  value="assets/pretrained_v2/f0G40k.pth",
1353
  interactive=True,
1354
+ visible=True
1355
  )
1356
  pretrained_D15 = gr.Textbox(
1357
  label=i18n("加载预训练底模D路径"),
1358
  value="assets/pretrained_v2/f0D40k.pth",
1359
  interactive=True,
1360
+ visible=True
1361
  )
1362
+ with gr.Row():
1363
+ download_model = gr.Button('5.Download Model')
1364
+ with gr.Row():
1365
+ model_files = gr.Files(label='Your Model and Index file can be downloaded here:')
1366
+ download_model.click(fn=download_model_files, inputs=[exp_dir1], outputs=[model_files, info3])
1367
+ with gr.Row():
1368
  sr2.change(
1369
  change_sr2,
1370
  [sr2, if_f0_3, version19],
 
1431
  )
1432
 
1433
  if config.iscolab:
1434
+ app.queue().launch(share=True)
1435
  else:
1436
+ app.queue().launch(
1437
  server_name="0.0.0.0",
1438
  inbrowser=not config.noautoopen,
1439
  server_port=config.listen_port,