Surn commited on
Commit
cee6155
·
1 Parent(s): 47b87f0

Add Waveform Animation Option part 1

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -331,7 +331,7 @@ def predict(model, text, melody_filepath, duration, dimension, topk, topp, tempe
331
  audio_write(
332
  file.name, output, MODEL.sample_rate, strategy="loudness",
333
  loudness_headroom_db=18, loudness_compressor=True, add_suffix=False, channels=2)
334
- waveform_video_path = get_waveform(file.name, bg_image=background, bar_count=45, name=title_file_name)
335
  # Remove the extension from file.name
336
  file_name_without_extension = os.path.splitext(file.name)[0]
337
  # Get the directory, filename, name, extension, and new extension of the waveform video path
 
331
  audio_write(
332
  file.name, output, MODEL.sample_rate, strategy="loudness",
333
  loudness_headroom_db=18, loudness_compressor=True, add_suffix=False, channels=2)
334
+ waveform_video_path = get_waveform(file.name, bg_image=background, bar_count=45, name=title_file_name, animate=False)
335
  # Remove the extension from file.name
336
  file_name_without_extension = os.path.splitext(file.name)[0]
337
  # Get the directory, filename, name, extension, and new extension of the waveform video path