rbyat commited on
Commit
2c2b311
·
1 Parent(s): 10ef87f

Update audiocraft/models/musicgen.py

Browse files
Files changed (1) hide show
  1. audiocraft/models/musicgen.py +1 -1
audiocraft/models/musicgen.py CHANGED
@@ -323,7 +323,7 @@ class MusicGen:
323
  torch.Tensor: Generated audio, of shape [B, C, T], T is defined by the generation params.
324
  """
325
  total_gen_len = int(self.duration * self.frame_rate)
326
- max_prompt_len = int(min(self.duration, self.max_duration) * self.frame_rate)
327
  current_gen_offset: int = 0
328
 
329
  def _progress_callback(generated_tokens: int, tokens_to_generate: int):
 
323
  torch.Tensor: Generated audio, of shape [B, C, T], T is defined by the generation params.
324
  """
325
  total_gen_len = int(self.duration * self.frame_rate)
326
+ max_prompt_len = int(min(int(self.duration), int(self.max_duration)) * self.frame_rate)
327
  current_gen_offset: int = 0
328
 
329
  def _progress_callback(generated_tokens: int, tokens_to_generate: int):