Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|