KingNish commited on
Commit
074c860
·
verified ·
1 Parent(s): fdfbaa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ def get_last_mp3_file(output_dir):
122
  # Return the most recent .mp3 file
123
  return mp3_files_with_path[0]
124
 
125
- device = torch.device(f"cuda" if torch.cuda.is_available() else "cpu")
126
 
127
  model = AutoModelForCausalLM.from_pretrained(
128
  "m-a-p/YuE-s1-7B-anneal-en-cot",
 
122
  # Return the most recent .mp3 file
123
  return mp3_files_with_path[0]
124
 
125
+ device = "cuda:0"
126
 
127
  model = AutoModelForCausalLM.from_pretrained(
128
  "m-a-p/YuE-s1-7B-anneal-en-cot",