Spaces:
Sleeping
Sleeping
Yunshansongbai
commited on
Commit
•
fcb101a
1
Parent(s):
c2edf17
Update app.py
Browse files
app.py
CHANGED
@@ -141,6 +141,8 @@ def compose_fn(input_vocal,input_instrumental,mixing_ratio=0.5):
|
|
141 |
app = gr.Blocks()
|
142 |
|
143 |
with app:
|
|
|
|
|
144 |
gr.Markdown('<h1 style="text-align: center;">SVC歌声转换全流程体验(伴奏分离,转换,混音)</h1>')
|
145 |
with gr.Tabs() as tabs:
|
146 |
with gr.TabItem("人声伴奏分离"):
|
@@ -179,7 +181,6 @@ with app:
|
|
179 |
song_output = gr.Audio(label="输出歌曲",interactive=False)
|
180 |
|
181 |
with gr.TabItem("设置"):
|
182 |
-
one_hour_later = datetime.now() + timedelta(hours=1)
|
183 |
output = gr.Textbox(label="输出",placeholder=f"距离下一次允许重启时间为{one_hour_later}")
|
184 |
btn_reboot = gr.Button("重启",variant="primary")
|
185 |
btn_separate.click(separate_fn, song_input, [text_output1, vocal_output1,instrumental_output1,vocal_input1,instrumental_input1])
|
|
|
141 |
app = gr.Blocks()
|
142 |
|
143 |
with app:
|
144 |
+
start_time = time.time()
|
145 |
+
one_hour_later = datetime.now() + timedelta(hours=1)
|
146 |
gr.Markdown('<h1 style="text-align: center;">SVC歌声转换全流程体验(伴奏分离,转换,混音)</h1>')
|
147 |
with gr.Tabs() as tabs:
|
148 |
with gr.TabItem("人声伴奏分离"):
|
|
|
181 |
song_output = gr.Audio(label="输出歌曲",interactive=False)
|
182 |
|
183 |
with gr.TabItem("设置"):
|
|
|
184 |
output = gr.Textbox(label="输出",placeholder=f"距离下一次允许重启时间为{one_hour_later}")
|
185 |
btn_reboot = gr.Button("重启",variant="primary")
|
186 |
btn_separate.click(separate_fn, song_input, [text_output1, vocal_output1,instrumental_output1,vocal_input1,instrumental_input1])
|