AlexK-PL commited on
Commit
be30125
verified
1 Parent(s): ee2c994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ MAX_INPUT_TEXT_LEN = int(os.environ.get("MAX_INPUT_TEXT_LEN", default=500))
70
 
71
  # Dynamically read model files, exclude 'speakers.pth'
72
  model_files = [f for f in os.listdir(os.getcwd()) if f.endswith('.pth') and f != 'speakers.pth']
73
- model_files.sort(key=lambda x: os.path.getmtime(os.path.join(os.getcwd(), x)), reverse=True)
74
 
75
  speakers_path = "speakers.pth"
76
  speakers_list = torch.load(speakers_path)
 
70
 
71
  # Dynamically read model files, exclude 'speakers.pth'
72
  model_files = [f for f in os.listdir(os.getcwd()) if f.endswith('.pth') and f != 'speakers.pth']
73
+ # model_files.sort(key=lambda x: os.path.getmtime(os.path.join(os.getcwd(), x)), reverse=True)
74
 
75
  speakers_path = "speakers.pth"
76
  speakers_list = torch.load(speakers_path)