Spaces:
Runtime error
Runtime error
Update local_server_new.py
Browse files- local_server_new.py +1 -0
local_server_new.py
CHANGED
@@ -9,6 +9,7 @@ import os
|
|
9 |
from TTS.api import TTS
|
10 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
11 |
from langdetect import detect
|
|
|
12 |
|
13 |
# Allowlist XttsConfig so torch.load doesn't raise UnpicklingError
|
14 |
from torch.serialization import add_safe_globals
|
|
|
9 |
from TTS.api import TTS
|
10 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
11 |
from langdetect import detect
|
12 |
+
import soundfile as sf # Import soundfile
|
13 |
|
14 |
# Allowlist XttsConfig so torch.load doesn't raise UnpicklingError
|
15 |
from torch.serialization import add_safe_globals
|