Spaces:
Sleeping
Sleeping
Yunshansongbai
commited on
Commit
•
4393886
1
Parent(s):
5075527
Update app.py
Browse files
app.py
CHANGED
@@ -23,9 +23,6 @@ model_dir=build_dir+'/trained_models'
|
|
23 |
|
24 |
model_list_path = model_dir + "/model_list.txt"
|
25 |
|
26 |
-
current_time = datetime.now()
|
27 |
-
one_hour_later = current_time + timedelta(hours=1)
|
28 |
-
|
29 |
# 筛选出文件夹
|
30 |
models = []
|
31 |
for filename in os.listdir(model_dir):
|
@@ -185,6 +182,8 @@ with app:
|
|
185 |
|
186 |
with gr.TabItem("设置"):
|
187 |
start_time = time.time()
|
|
|
|
|
188 |
output = gr.Textbox(label="输出",placeholder=f"距离下一次允许重启时间为{one_hour_later}")
|
189 |
btn_reboot = gr.Button("重启",variant="primary")
|
190 |
btn_separate.click(separate_fn, song_input, [text_output1, vocal_output1,instrumental_output1,vocal_input1,instrumental_input1])
|
|
|
23 |
|
24 |
model_list_path = model_dir + "/model_list.txt"
|
25 |
|
|
|
|
|
|
|
26 |
# 筛选出文件夹
|
27 |
models = []
|
28 |
for filename in os.listdir(model_dir):
|
|
|
182 |
|
183 |
with gr.TabItem("设置"):
|
184 |
start_time = time.time()
|
185 |
+
current_time = datetime.now()
|
186 |
+
one_hour_later = current_time + timedelta(hours=1)
|
187 |
output = gr.Textbox(label="输出",placeholder=f"距离下一次允许重启时间为{one_hour_later}")
|
188 |
btn_reboot = gr.Button("重启",variant="primary")
|
189 |
btn_separate.click(separate_fn, song_input, [text_output1, vocal_output1,instrumental_output1,vocal_input1,instrumental_input1])
|