modified: app.py
Browse files
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
|
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",
|