Spaces:
Running
Running
ziqiangao
commited on
Commit
·
2fbfeb6
1
Parent(s):
a7022e9
update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ import ffmpeg
|
|
14 |
import subprocess
|
15 |
import traceback
|
16 |
import time
|
|
|
17 |
|
18 |
path = "" # Update with your path
|
19 |
|
@@ -215,7 +216,8 @@ def gradio_interface(audio_file, output_name, fps=30, vidwidth=1280, vidheight=7
|
|
215 |
res = tuple(map(int, resolution.split('x')))
|
216 |
main(audio_file, output_name, fps=fps, res=res, oscres=oscres, sr=sr)
|
217 |
time.sleep(5)
|
218 |
-
|
|
|
219 |
return f"{output_name}.mp4"
|
220 |
|
221 |
# Define Gradio interface with progress bar
|
|
|
14 |
import subprocess
|
15 |
import traceback
|
16 |
import time
|
17 |
+
import shutil
|
18 |
|
19 |
path = "" # Update with your path
|
20 |
|
|
|
216 |
res = tuple(map(int, resolution.split('x')))
|
217 |
main(audio_file, output_name, fps=fps, res=res, oscres=oscres, sr=sr)
|
218 |
time.sleep(5)
|
219 |
+
|
220 |
+
shutil.rmtree("out")
|
221 |
return f"{output_name}.mp4"
|
222 |
|
223 |
# Define Gradio interface with progress bar
|