Flux9665 commited on
Commit
ea00603
β€’
1 Parent(s): 041054f

make the first inference after a restart run much faster

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -62,6 +62,8 @@ class TTS_Interface:
62
  "Portuguese Speaker's Voice": "reference_audios/portuguese.flac",
63
  "Italian Speaker's Voice" : "reference_audios/italian.flac",
64
  }
 
 
65
 
66
  def read(self, prompt, language, accent, speaker):
67
  language = language.split()[0]
 
62
  "Portuguese Speaker's Voice": "reference_audios/portuguese.flac",
63
  "Italian Speaker's Voice" : "reference_audios/italian.flac",
64
  }
65
+ self.model.set_utterance_embedding(self.speaker_path_lookup[self.current_speaker])
66
+
67
 
68
  def read(self, prompt, language, accent, speaker):
69
  language = language.split()[0]