Sandy commited on
Commit
5069ef2
1 Parent(s): 9558cf7

Add application file

Browse files
app.py CHANGED
@@ -81,12 +81,7 @@ if __name__ == '__main__':
81
  args = parser.parse_args()
82
  hubert_model = utils.get_hubert_model().to(args.device)
83
  models = []
84
- others = {
85
- "rudolf": "https://huggingface.co/spaces/sayashi/sovits-rudolf",
86
- "teio": "https://huggingface.co/spaces/sayashi/sovits-teio",
87
- "goldship": "https://huggingface.co/spaces/sayashi/sovits-goldship",
88
- "tannhauser": "https://huggingface.co/spaces/sayashi/sovits-tannhauser"
89
- }
90
  voices = []
91
  tts_voice_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices())
92
  for r in tts_voice_list:
@@ -129,16 +124,4 @@ if __name__ == '__main__':
129
  vc_output2 = gr.Audio(label="Output Audio")
130
  vc_submit.click(vc_fn, [vc_input, vc_transform, auto_f0, tts_text, tts_voice, tts_mode], [vc_output1, vc_output2], api_name=f"{name.lower().strip()}")
131
  tts_mode.change(change_to_tts_mode, [tts_mode], [vc_input, tts_text, tts_voice, auto_f0])
132
- for category, link in others.items():
133
- with gr.TabItem(category):
134
- gr.Markdown(
135
- f'''
136
- <center>
137
- <h2>Click to Go</h2>
138
- <a href="{link}">
139
- <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-xl-dark.svg"
140
- </a>
141
- </center>
142
- '''
143
- )
144
  app.queue(concurrency_count=1, api_open=args.api).launch(share=args.share)
 
81
  args = parser.parse_args()
82
  hubert_model = utils.get_hubert_model().to(args.device)
83
  models = []
84
+ others = {}
 
 
 
 
 
85
  voices = []
86
  tts_voice_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices())
87
  for r in tts_voice_list:
 
124
  vc_output2 = gr.Audio(label="Output Audio")
125
  vc_submit.click(vc_fn, [vc_input, vc_transform, auto_f0, tts_text, tts_voice, tts_mode], [vc_output1, vc_output2], api_name=f"{name.lower().strip()}")
126
  tts_mode.change(change_to_tts_mode, [tts_mode], [vc_input, tts_text, tts_voice, auto_f0])
 
 
 
 
 
 
 
 
 
 
 
 
127
  app.queue(concurrency_count=1, api_open=args.api).launch(share=args.share)
models/kobo/config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "train": {
3
+ "log_interval": 100,
4
+ "eval_interval": 800,
5
+ "seed": 1234,
6
+ "epochs": 10000,
7
+ "learning_rate": 0.0001,
8
+ "betas": [
9
+ 0.8,
10
+ 0.99
11
+ ],
12
+ "eps": 1e-09,
13
+ "batch_size": 1,
14
+ "fp16_run": false,
15
+ "lr_decay": 0.999875,
16
+ "segment_size": 10240,
17
+ "init_lr_ratio": 1,
18
+ "warmup_epochs": 0,
19
+ "c_mel": 45,
20
+ "c_kl": 1.0,
21
+ "use_sr": true,
22
+ "max_speclen": 512,
23
+ "port": "8001",
24
+ "keep_ckpts": 3
25
+ },
26
+ "data": {
27
+ "training_files": "filelists/44k/train.txt",
28
+ "validation_files": "filelists/44k/val.txt",
29
+ "max_wav_value": 32768.0,
30
+ "sampling_rate": 44100,
31
+ "filter_length": 2048,
32
+ "hop_length": 512,
33
+ "win_length": 2048,
34
+ "n_mel_channels": 80,
35
+ "mel_fmin": 0.0,
36
+ "mel_fmax": 22050
37
+ },
38
+ "model": {
39
+ "inter_channels": 192,
40
+ "hidden_channels": 192,
41
+ "filter_channels": 768,
42
+ "n_heads": 2,
43
+ "n_layers": 6,
44
+ "kernel_size": 3,
45
+ "p_dropout": 0.1,
46
+ "resblock": "1",
47
+ "resblock_kernel_sizes": [
48
+ 3,
49
+ 7,
50
+ 11
51
+ ],
52
+ "resblock_dilation_sizes": [
53
+ [
54
+ 1,
55
+ 3,
56
+ 5
57
+ ],
58
+ [
59
+ 1,
60
+ 3,
61
+ 5
62
+ ],
63
+ [
64
+ 1,
65
+ 3,
66
+ 5
67
+ ]
68
+ ],
69
+ "upsample_rates": [
70
+ 8,
71
+ 8,
72
+ 2,
73
+ 2,
74
+ 2
75
+ ],
76
+ "upsample_initial_channel": 512,
77
+ "upsample_kernel_sizes": [
78
+ 16,
79
+ 16,
80
+ 4,
81
+ 4,
82
+ 4
83
+ ],
84
+ "n_layers_q": 3,
85
+ "use_spectral_norm": false,
86
+ "gin_channels": 256,
87
+ "ssl_dim": 256,
88
+ "n_speakers": 200
89
+ },
90
+ "spk": {
91
+ "kobo": 0
92
+ }
93
+ }
models/kobo/cover.png ADDED
models/kobo/kobo.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e0c00e8497ee213cdb2cb802236209bae5dabb489685d51ea02d93aa62f5c9f
3
+ size 542789469