Do0rMaMu commited on
Commit
b0b949d
·
verified ·
1 Parent(s): 58dac0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ torch.set_float32_matmul_precision('high')
12
  # Initialize FastAPI app and ChatTTS model
13
  app = FastAPI()
14
  chat = ChatTTS.Chat()
15
- chat.load_models(compile=False)
16
 
17
  # Define the request model
18
  class TextRequest(BaseModel):
 
12
  # Initialize FastAPI app and ChatTTS model
13
  app = FastAPI()
14
  chat = ChatTTS.Chat()
15
+ chat.load(compile=False)
16
 
17
  # Define the request model
18
  class TextRequest(BaseModel):