Spaces:
Running
on
Zero
Running
on
Zero
add space gpu
Browse files
app.py
CHANGED
|
@@ -224,8 +224,8 @@ device='cuda'
|
|
| 224 |
dtype=torch.float16
|
| 225 |
diffrhythm2, mulan, lrc_tokenizer, decoder = prepare_model("ASLP-Lab/DiffRhythm2", device, dtype)
|
| 226 |
|
| 227 |
-
|
| 228 |
-
|
| 229 |
def infer_music(
|
| 230 |
lrc,
|
| 231 |
current_prompt_type,
|
|
|
|
| 224 |
dtype=torch.float16
|
| 225 |
diffrhythm2, mulan, lrc_tokenizer, decoder = prepare_model("ASLP-Lab/DiffRhythm2", device, dtype)
|
| 226 |
|
| 227 |
+
import spaces
|
| 228 |
+
@spaces.GPU
|
| 229 |
def infer_music(
|
| 230 |
lrc,
|
| 231 |
current_prompt_type,
|