jpc commited on
Commit
f97a5dd
1 Parent(s): 7bf3a05

Enable torch.compile for TTS

Browse files
Files changed (1) hide show
  1. tts_service.py +1 -1
tts_service.py CHANGED
@@ -11,7 +11,7 @@ class WhisperSpeechTTS:
11
  pass
12
 
13
  def initialize_model(self):
14
- self.pipe = Pipeline(s2a_ref='collabora/whisperspeech:s2a-q4-tiny-en+pl.model')
15
  self.last_llm_response = None
16
 
17
  def run(self, host, port, audio_queue=None):
 
11
  pass
12
 
13
  def initialize_model(self):
14
+ self.pipe = Pipeline(s2a_ref='collabora/whisperspeech:s2a-q4-tiny-en+pl.model', torch_compile=True)
15
  self.last_llm_response = None
16
 
17
  def run(self, host, port, audio_queue=None):