Hev832 commited on
Commit
1aae856
1 Parent(s): 5b7b0da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -30,10 +30,21 @@ os.chdir(main_dir)
30
  models_dir = "models"
31
  audio_separat_dir = main_dir / "audio_input"
32
 
 
33
 
34
- # Directory to monitor for audio files
35
  AUDIO_DIR = main_dir / 'audio_input'
36
 
 
 
 
 
 
 
 
 
 
 
 
37
  # Function to get the list of audio files in the specified directory
38
  def get_audio_files():
39
  if not os.path.exists(AUDIO_DIR):
 
30
  models_dir = "models"
31
  audio_separat_dir = main_dir / "audio_input"
32
 
33
+ rvc_models_dir = os.path.join(models_dir, 'rvc_models')
34
 
 
35
  AUDIO_DIR = main_dir / 'audio_input'
36
 
37
+
38
+
39
+
40
+
41
+ def get_current_models(models_dir):
42
+ models_list = os.listdir(models_dir)
43
+ items_to_remove = ['hubert_base.pt', 'readme.txt', 'rmvpe.pt']
44
+ return [item for item in models_list if item not in items_to_remove]
45
+
46
+
47
+
48
  # Function to get the list of audio files in the specified directory
49
  def get_audio_files():
50
  if not os.path.exists(AUDIO_DIR):