yhzx233 commited on
Commit
dffa75b
·
1 Parent(s): ea174b0

fix: init model

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -145,6 +145,9 @@ def initialize_model():
145
 
146
  return tokenizer, model, spt, device
147
 
 
 
 
148
  def process_single_audio_generation(
149
  text_input: str,
150
  audio_mode: str,
 
145
 
146
  return tokenizer, model, spt, device
147
 
148
+ # Initialize model when starting the application
149
+ initialize_model()
150
+
151
  def process_single_audio_generation(
152
  text_input: str,
153
  audio_mode: str,