Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,9 +107,10 @@ def create_vc_fn(model_title, tgt_sr, net_g, vc, if_f0, version, file_index):
|
|
107 |
)
|
108 |
info = f"[{datetime.now().strftime('%Y-%m-%d %H:%M')}]: npy: {times[0]}, f0: {times[1]}s, infer: {times[2]}s"
|
109 |
print(f"{model_title} | {info}")
|
110 |
-
command = f'ffmpeg -y -i {audio_opt} -c:a libopus output/result/audio.ogg'
|
111 |
-
result = subprocess.run(command.split(), stdout=subprocess.PIPE)
|
112 |
-
print(result.stdout.decode())
|
|
|
113 |
# print(tgt_sr, audio_opt)
|
114 |
return info, (tgt_sr, audio_opt)
|
115 |
except:
|
|
|
107 |
)
|
108 |
info = f"[{datetime.now().strftime('%Y-%m-%d %H:%M')}]: npy: {times[0]}, f0: {times[1]}s, infer: {times[2]}s"
|
109 |
print(f"{model_title} | {info}")
|
110 |
+
# command = f'ffmpeg -y -i {audio_opt} -c:a libopus output/result/audio.ogg'
|
111 |
+
# result = subprocess.run(command.split(), stdout=subprocess.PIPE)
|
112 |
+
# print(result.stdout.decode())
|
113 |
+
print((tgt_sr, audio_opt))
|
114 |
# print(tgt_sr, audio_opt)
|
115 |
return info, (tgt_sr, audio_opt)
|
116 |
except:
|