Gpagejr12 commited on
Commit
7562b2d
·
verified ·
1 Parent(s): c9d1263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,8 +20,9 @@ def load_model():
20
  def generate_music_tensors(descriptions, duration: int, device):
21
  # Load the model and move it to the specified device
22
  model = load_model()
23
- model = model.to(device)
24
 
 
25
  model.set_generation_params(
26
  use_sampling=True,
27
  top_k=250,
 
20
  def generate_music_tensors(descriptions, duration: int, device):
21
  # Load the model and move it to the specified device
22
  model = load_model()
23
+ model = model
24
 
25
+
26
  model.set_generation_params(
27
  use_sampling=True,
28
  top_k=250,