chore: fix

This commit is contained in:
kevin.zhang 2024-05-16 15:14:28 +08:00
parent 95c761f492
commit 07d8d5d2c2
2 changed files with 1 additions and 23 deletions

View File

@ -39,4 +39,4 @@ COPY . /workspace
EXPOSE 9871 9872 9873 9874 9880 EXPOSE 9871 9872 9873 9874 9880
CMD ["python", "api_v3.py"] CMD ["python", "webui.py"]

22
test.py
View File

@ -1,22 +0,0 @@
import os
def get_voices_yaml(directory):
try:
with os.scandir(directory) as entries:
for entry in entries:
if entry.is_file():
print(entry.path)
except FileNotFoundError:
print("Directory not found")
except PermissionError:
print("Permission denied")
except Exception as e:
print(f"An error occurred: {e}")
# Specify the path to the directory
directory_path = 'GPT_SoVITS/configs/voices'
# Call the function
get_voices_yaml(directory_path)