KingNish commited on
Commit
097a5a2
·
1 Parent(s): 0df1f1c

modified: app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def get_last_mp3_file(output_dir):
106
  # Return the most recent .mp3 file
107
  return mp3_files_with_path[0]
108
 
109
- device = torch.device(f"cuda:{cuda_idx}" if torch.cuda.is_available() else "cpu")
110
 
111
  model = AutoModelForCausalLM.from_pretrained(
112
  "m-a-p/YuE-s1-7B-anneal-en-cot",
 
106
  # Return the most recent .mp3 file
107
  return mp3_files_with_path[0]
108
 
109
+ device = torch.device(f"cuda" if torch.cuda.is_available() else "cpu")
110
 
111
  model = AutoModelForCausalLM.from_pretrained(
112
  "m-a-p/YuE-s1-7B-anneal-en-cot",