Update app.py
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ NEW INFERENCE:
|
|
188 |
# Print the contents
|
189 |
for item in contents:
|
190 |
print(item)
|
191 |
-
|
192 |
tts_video = gr.make_waveform(audio="output.wav")
|
193 |
print("FINISHED")
|
194 |
return "output.wav", tts_video, gr.update(value=f"bark_voices/{file_name}/{contents[1]}", visible=True), gr.Group.update(visible=True), destination_path
|
@@ -215,7 +215,7 @@ NEW INFERENCE:
|
|
215 |
voice_dir="examples/library/",
|
216 |
speaker=f"{c_name}")
|
217 |
|
218 |
-
|
219 |
tts_video = gr.make_waveform(audio="output.wav")
|
220 |
print("FINISHED")
|
221 |
return "output.wav", tts_video, gr.update(value=f"examples/library/{c_name}/{c_name}.npz", visible=True), gr.Group.update(visible=True)
|
|
|
188 |
# Print the contents
|
189 |
for item in contents:
|
190 |
print(item)
|
191 |
+
print("Preparing final waveform video ...")
|
192 |
tts_video = gr.make_waveform(audio="output.wav")
|
193 |
print("FINISHED")
|
194 |
return "output.wav", tts_video, gr.update(value=f"bark_voices/{file_name}/{contents[1]}", visible=True), gr.Group.update(visible=True), destination_path
|
|
|
215 |
voice_dir="examples/library/",
|
216 |
speaker=f"{c_name}")
|
217 |
|
218 |
+
print("Preparing final waveform video ...")
|
219 |
tts_video = gr.make_waveform(audio="output.wav")
|
220 |
print("FINISHED")
|
221 |
return "output.wav", tts_video, gr.update(value=f"examples/library/{c_name}/{c_name}.npz", visible=True), gr.Group.update(visible=True)
|