Spaces:
Running
Running
ziqiangao
commited on
Commit
·
a7022e9
1
Parent(s):
6a8f4ca
update app.py
Browse files
app.py
CHANGED
@@ -215,6 +215,7 @@ 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 |
return f"{output_name}.mp4"
|
219 |
|
220 |
# Define Gradio interface with progress bar
|
@@ -227,7 +228,7 @@ iface = gr.Interface(
|
|
227 |
gr.components.Slider(label="Output Video Width", minimum=100, maximum=2000, value=1280, step=2),
|
228 |
gr.components.Slider(label="Output Video Height", minimum=100, maximum=2000, value=720, step=2),
|
229 |
gr.components.Slider(label="Number of Visualization Segments", minimum=256, maximum=2048, step=2, value=512),
|
230 |
-
gr.components.Slider(label="Scope Sample Rate", minimum=11025, maximum=44100, step=
|
231 |
],
|
232 |
outputs=gr.components.Video(label="Output"),
|
233 |
title="MP3 to Video Visualization",
|
|
|
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 |
+
os.remove("out/")
|
219 |
return f"{output_name}.mp4"
|
220 |
|
221 |
# Define Gradio interface with progress bar
|
|
|
228 |
gr.components.Slider(label="Output Video Width", minimum=100, maximum=2000, value=1280, step=2),
|
229 |
gr.components.Slider(label="Output Video Height", minimum=100, maximum=2000, value=720, step=2),
|
230 |
gr.components.Slider(label="Number of Visualization Segments", minimum=256, maximum=2048, step=2, value=512),
|
231 |
+
gr.components.Slider(label="Scope Sample Rate", minimum=11025, maximum=44100, step=5, value=11025)
|
232 |
],
|
233 |
outputs=gr.components.Video(label="Output"),
|
234 |
title="MP3 to Video Visualization",
|