melromyeah commited on
Commit
a805cd8
·
verified ·
1 Parent(s): aa4c359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ os.makedirs(tts_audio_dir, exist_ok=True)
49
  os.environ["TEMP"] = main_tmp_dir # Set for any underlying libraries
50
 
51
  # --- Model Loading (Cached for Performance) ---
52
- @gr.cache_resource
53
  def load_hubert_model():
54
  """Loads the Hubert model and caches it."""
55
  print("Loading Hubert model...")
 
49
  os.environ["TEMP"] = main_tmp_dir # Set for any underlying libraries
50
 
51
  # --- Model Loading (Cached for Performance) ---
52
+ @gr.cache()
53
  def load_hubert_model():
54
  """Loads the Hubert model and caches it."""
55
  print("Loading Hubert model...")