Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ if __name__ == '__main__':
|
|
134 |
else:
|
135 |
net_g = net_g.float()
|
136 |
vc = VC(tgt_sr, device, is_half)
|
137 |
-
models.append((name, title, author,
|
138 |
with gr.Blocks() as app:
|
139 |
gr.Markdown(
|
140 |
"# <center> RVC Models\n"
|
@@ -146,7 +146,7 @@ if __name__ == '__main__':
|
|
146 |
"[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R7AH1FA)\n\n"
|
147 |
)
|
148 |
with gr.Tabs():
|
149 |
-
for (name, title, author,
|
150 |
with gr.TabItem(name):
|
151 |
with gr.Row():
|
152 |
gr.Markdown(
|
|
|
134 |
else:
|
135 |
net_g = net_g.float()
|
136 |
vc = VC(tgt_sr, device, is_half)
|
137 |
+
models.append((name, title, author, create_vc_fn(tgt_sr, net_g, vc, if_f0, index, npy)))
|
138 |
with gr.Blocks() as app:
|
139 |
gr.Markdown(
|
140 |
"# <center> RVC Models\n"
|
|
|
146 |
"[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R7AH1FA)\n\n"
|
147 |
)
|
148 |
with gr.Tabs():
|
149 |
+
for (name, title, author, vc_fn) in models:
|
150 |
with gr.TabItem(name):
|
151 |
with gr.Row():
|
152 |
gr.Markdown(
|