MAZALA2024 commited on
Commit
cf8e39b
·
verified ·
1 Parent(s): 4b4da2c

Update voice_processing.py

Browse files
Files changed (1) hide show
  1. voice_processing.py +0 -4
voice_processing.py CHANGED
@@ -114,10 +114,6 @@ def load_hubert():
114
  hubert_model = hubert_model.float()
115
  return hubert_model.eval()
116
 
117
- def get_model_names():
118
- model_root = "weights" # Assuming this is where your models are stored
119
- return [d for d in os.listdir(model_root) if os.path.isdir(f"{model_root}/{d}")]
120
-
121
  # Add this helper function to ensure a new event loop is created if none exists
122
  def run_async_in_thread(fn, *args):
123
  loop = asyncio.new_event_loop()
 
114
  hubert_model = hubert_model.float()
115
  return hubert_model.eval()
116
 
 
 
 
 
117
  # Add this helper function to ensure a new event loop is created if none exists
118
  def run_async_in_thread(fn, *args):
119
  loop = asyncio.new_event_loop()