ford442 commited on
Commit
db024ff
·
verified ·
1 Parent(s): c778dff

Update demos/musicgen_colab.py

Browse files
Files changed (1) hide show
  1. demos/musicgen_colab.py +1 -1
demos/musicgen_colab.py CHANGED
@@ -238,7 +238,7 @@ _default_model_name = "facebook/musicgen-melody"
238
  def predict_full(model, model_path, depth, use_mbd, text, melody, duration, topk, topp, temperature, cfg_coef):
239
  # Initialize Predictor *INSIDE* the function
240
  predictor = Predictor(model, depth)
241
- task_id, (wav, diffusion_wav) = predictor.predict( # Unpack directly!
242
  text=text,
243
  melody=melody,
244
  duration=duration,
 
238
  def predict_full(model, model_path, depth, use_mbd, text, melody, duration, topk, topp, temperature, cfg_coef):
239
  # Initialize Predictor *INSIDE* the function
240
  predictor = Predictor(model, depth)
241
+ wav, diffusion_wav = predictor.predict( # Unpack directly!
242
  text=text,
243
  melody=melody,
244
  duration=duration,