mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-08 16:00:01 +08:00
chore: fix
This commit is contained in:
parent
95c761f492
commit
07d8d5d2c2
@ -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
22
test.py
@ -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)
|
|
Loading…
x
Reference in New Issue
Block a user