Update app.py
Browse files
app.py
CHANGED
@@ -90,14 +90,14 @@ def clear_clean_ckeck():
|
|
90 |
return False
|
91 |
|
92 |
def wipe_npz_file(folder_path):
|
93 |
-
print(f"We have to wipe previous .npz files, inf {folder_path} if needed")
|
94 |
if os.path.exists(folder_path):
|
95 |
-
print(f"folder {folder_path} exists")
|
96 |
#shutil.rmtree(folder_path)
|
97 |
else :
|
98 |
-
print(f"path: {folder_path} does not exists yet")
|
99 |
|
100 |
-
print("YO • user is manipulating audio inputs")
|
101 |
|
102 |
def split_process(audio, chosen_out_track):
|
103 |
gr.Info("Cleaning your audio sample...")
|
@@ -193,6 +193,7 @@ NEW INFERENCE:
|
|
193 |
print(item)
|
194 |
print("Preparing final waveform video ...")
|
195 |
tts_video = gr.make_waveform(audio="output.wav")
|
|
|
196 |
print("FINISHED")
|
197 |
return "output.wav", tts_video, gr.update(value=f"bark_voices/{file_name}/{contents[1]}", visible=True), gr.Group.update(visible=True), destination_path
|
198 |
|
@@ -220,6 +221,7 @@ NEW INFERENCE:
|
|
220 |
|
221 |
print("Preparing final waveform video ...")
|
222 |
tts_video = gr.make_waveform(audio="output.wav")
|
|
|
223 |
print("FINISHED")
|
224 |
return "output.wav", tts_video, gr.update(value=f"examples/library/{c_name}/{c_name}.npz", visible=True), gr.Group.update(visible=True)
|
225 |
|
|
|
90 |
return False
|
91 |
|
92 |
def wipe_npz_file(folder_path):
|
93 |
+
#print(f"We have to wipe previous .npz files, inf {folder_path} if needed")
|
94 |
if os.path.exists(folder_path):
|
95 |
+
#print(f"folder {folder_path} exists")
|
96 |
#shutil.rmtree(folder_path)
|
97 |
else :
|
98 |
+
#print(f"path: {folder_path} does not exists yet")
|
99 |
|
100 |
+
print("YO • a user is manipulating audio inputs")
|
101 |
|
102 |
def split_process(audio, chosen_out_track):
|
103 |
gr.Info("Cleaning your audio sample...")
|
|
|
193 |
print(item)
|
194 |
print("Preparing final waveform video ...")
|
195 |
tts_video = gr.make_waveform(audio="output.wav")
|
196 |
+
print(tts_video)
|
197 |
print("FINISHED")
|
198 |
return "output.wav", tts_video, gr.update(value=f"bark_voices/{file_name}/{contents[1]}", visible=True), gr.Group.update(visible=True), destination_path
|
199 |
|
|
|
221 |
|
222 |
print("Preparing final waveform video ...")
|
223 |
tts_video = gr.make_waveform(audio="output.wav")
|
224 |
+
print(tts_video)
|
225 |
print("FINISHED")
|
226 |
return "output.wav", tts_video, gr.update(value=f"examples/library/{c_name}/{c_name}.npz", visible=True), gr.Group.update(visible=True)
|
227 |
|