Update orpheus-tts/decoder.py
Browse files- orpheus-tts/decoder.py +2 -0
orpheus-tts/decoder.py
CHANGED
|
@@ -7,10 +7,12 @@ import queue
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
|
|
|
|
| 10 |
model = SNAC.from_pretrained("hubertsiuzdak/snac_24khz").eval()
|
| 11 |
|
| 12 |
snac_device = os.environ.get("SNAC_DEVICE", "cuda" if torch.cuda.is_available() else "cpu")
|
| 13 |
model = model.to(snac_device)
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
def convert_to_audio(multiframe, count):
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
|
| 10 |
+
print("DEBUG: Loading SNAC model...")
|
| 11 |
model = SNAC.from_pretrained("hubertsiuzdak/snac_24khz").eval()
|
| 12 |
|
| 13 |
snac_device = os.environ.get("SNAC_DEVICE", "cuda" if torch.cuda.is_available() else "cpu")
|
| 14 |
model = model.to(snac_device)
|
| 15 |
+
print(f"DEBUG: SNAC model loaded successfully on device: {snac_device}")
|
| 16 |
|
| 17 |
|
| 18 |
def convert_to_audio(multiframe, count):
|