Ivan000 commited on
Commit
16f11e5
·
verified ·
1 Parent(s): 05111e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -64,7 +64,7 @@ def create_video_from_frames(frames_directory):
64
  raise ValueError("No frames found to create the video.")
65
 
66
  # Create a video from the frames
67
- clip = moviepy.video.io.ImageSequenceClip.ImageSequenceClip(frame_files, fps=30)
68
  video_path = 'output_video.mp4'
69
  clip.write_videofile(video_path, codec='libx264')
70
 
@@ -90,10 +90,6 @@ iface = gr.Interface(
90
  "Supported file types: WAV, MP3, FLAC. "
91
  "Recommended file duration: 10 seconds to 5 minutes. "
92
  "If the file is invalid or cannot be processed, a default visualization will be generated.",
93
- examples=[
94
- ["examples/sample_audio.wav"],
95
- ["examples/sample_audio.mp3"]
96
- ]
97
  )
98
 
99
  # Launch the Gradio interface
 
64
  raise ValueError("No frames found to create the video.")
65
 
66
  # Create a video from the frames
67
+ clip = moviepy.video.io.ImageSequenceClip.ImageSequenceClip(frame_files, fps=10) # Set fps to 10 for better visibility
68
  video_path = 'output_video.mp4'
69
  clip.write_videofile(video_path, codec='libx264')
70
 
 
90
  "Supported file types: WAV, MP3, FLAC. "
91
  "Recommended file duration: 10 seconds to 5 minutes. "
92
  "If the file is invalid or cannot be processed, a default visualization will be generated.",
 
 
 
 
93
  )
94
 
95
  # Launch the Gradio interface