-
Notifications
You must be signed in to change notification settings - Fork 132
Initialization Failed • 'NoneType' object is not callable #46
Description
When launching this repo I get this message in the frontend UI: "Initialization Failed • 'NoneType' object is not callable". Before getting the message, this other message appears briefly, for a few seconds: "Connection Error • Unable to connect to API" (I guess that's just the backend failing and stopping communication for a bit).
This is the backend health status: "{"status":"error","model_loaded":false,"device":"cpu","config":{"max_chunk_length":280,"max_total_length":3000,"voice_sample_path":"/app/voice-sample.mp3","default_exaggeration":0.5,"default_cfg_weight":0.5,"default_temperature":0.8},"memory_info":{"cpu_memory_mb":6331.9140625,"cpu_memory_percent":80.79174383808258},"initialization_state":"error","initialization_progress":"Failed: 'NoneType' object is not callable","initialization_error":"'NoneType' object is not callable"}%
I am running on cpu/mps. Currently DEVICE=auto but I tried DEVICE=mps and DEVICE=cpu and didn't change.
I mounted both containers with either uv and standard command.
I added some debug prints in tts_model.py and the initialization fails on "Loading Chatterbox Multilingual TTS model". As I saw that, in the .env I set USE_MULTILINGUAL_MODEL=false but still I keep running into the same error.
The voice-sample.mp3 was located in /root and it's now located in app/voice-sample.mp3.
As I don't use Chinese I don't have pkuseg installed, but I don't think that has anything to do with this error.
How can I solve this? Thank you