Spaces:
Build error
Build error
Delete lib/vc/settings.py
Browse files- lib/vc/settings.py +0 -103
lib/vc/settings.py
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
def change_audio_mode(vc_audio_mode):
|
4 |
-
if vc_audio_mode == "Input path":
|
5 |
-
return (
|
6 |
-
# Input & Upload
|
7 |
-
gr.Textbox(visible=True),
|
8 |
-
gr.Audio(visible=False),
|
9 |
-
# Youtube
|
10 |
-
gr.Dropdown(visible=False),
|
11 |
-
gr.Textbox(visible=False),
|
12 |
-
gr.Textbox(visible=False),
|
13 |
-
gr.Button(visible=False),
|
14 |
-
# Splitter
|
15 |
-
gr.Dropdown(visible=False),
|
16 |
-
gr.Textbox(visible=False),
|
17 |
-
gr.Button(visible=False),
|
18 |
-
gr.Audio(visible=False),
|
19 |
-
gr.Audio(visible=False),
|
20 |
-
gr.Audio(visible=False),
|
21 |
-
gr.Slider(visible=False),
|
22 |
-
gr.Slider(visible=False),
|
23 |
-
gr.Audio(visible=False),
|
24 |
-
gr.Button(visible=False),
|
25 |
-
# TTS
|
26 |
-
gr.Textbox(visible=False),
|
27 |
-
gr.Dropdown(visible=False)
|
28 |
-
)
|
29 |
-
elif vc_audio_mode == "Upload audio":
|
30 |
-
return (
|
31 |
-
# Input & Upload
|
32 |
-
gr.Textbox(visible=False),
|
33 |
-
gr.Audio(visible=True),
|
34 |
-
# Youtube
|
35 |
-
gr.Dropdown(visible=False),
|
36 |
-
gr.Textbox(visible=False),
|
37 |
-
gr.Textbox(visible=False),
|
38 |
-
gr.Button(visible=False),
|
39 |
-
# Splitter
|
40 |
-
gr.Dropdown(visible=False),
|
41 |
-
gr.Textbox(visible=False),
|
42 |
-
gr.Button(visible=False),
|
43 |
-
gr.Audio(visible=False),
|
44 |
-
gr.Audio(visible=False),
|
45 |
-
gr.Audio(visible=False),
|
46 |
-
gr.Slider(visible=False),
|
47 |
-
gr.Slider(visible=False),
|
48 |
-
gr.Audio(visible=False),
|
49 |
-
gr.Button(visible=False),
|
50 |
-
# TTS
|
51 |
-
gr.Textbox(visible=False),
|
52 |
-
gr.Dropdown(visible=False)
|
53 |
-
)
|
54 |
-
elif vc_audio_mode == "Youtube":
|
55 |
-
return (
|
56 |
-
# Input & Upload
|
57 |
-
gr.Textbox(visible=False),
|
58 |
-
gr.Audio(visible=False),
|
59 |
-
# Youtube
|
60 |
-
gr.Dropdown(visible=True),
|
61 |
-
gr.Textbox(visible=True),
|
62 |
-
gr.Textbox(visible=True),
|
63 |
-
gr.Button(visible=True),
|
64 |
-
# Splitter
|
65 |
-
gr.Dropdown(visible=True),
|
66 |
-
gr.Textbox(visible=True),
|
67 |
-
gr.Button(visible=True),
|
68 |
-
gr.Audio(visible=True),
|
69 |
-
gr.Audio(visible=True),
|
70 |
-
gr.Audio(visible=True),
|
71 |
-
gr.Slider(visible=True),
|
72 |
-
gr.Slider(visible=True),
|
73 |
-
gr.Audio(visible=True),
|
74 |
-
gr.Button(visible=True),
|
75 |
-
# TTS
|
76 |
-
gr.Textbox(visible=False),
|
77 |
-
gr.Dropdown(visible=False)
|
78 |
-
)
|
79 |
-
elif vc_audio_mode == "TTS Audio":
|
80 |
-
return (
|
81 |
-
# Input & Upload
|
82 |
-
gr.Textbox(visible=False),
|
83 |
-
gr.Audio(visible=False),
|
84 |
-
# Youtube
|
85 |
-
gr.Dropdown(visible=False),
|
86 |
-
gr.Textbox(visible=False),
|
87 |
-
gr.Textbox(visible=False),
|
88 |
-
gr.Button(visible=False),
|
89 |
-
# Splitter
|
90 |
-
gr.Dropdown(visible=False),
|
91 |
-
gr.Textbox(visible=False),
|
92 |
-
gr.Button(visible=False),
|
93 |
-
gr.Audio(visible=False),
|
94 |
-
gr.Audio(visible=False),
|
95 |
-
gr.Audio(visible=False),
|
96 |
-
gr.Slider(visible=False),
|
97 |
-
gr.Slider(visible=False),
|
98 |
-
gr.Audio(visible=False),
|
99 |
-
gr.Button(visible=False),
|
100 |
-
# TTS
|
101 |
-
gr.Textbox(visible=True),
|
102 |
-
gr.Dropdown(visible=True)
|
103 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|