Update config.py

This commit is contained in:
XXXXRT666 2024-02-21 13:21:37 +00:00 committed by GitHub
parent 939971afe3
commit 9fa3da91a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ import torch
sovits_path = ""
gpt_path = ""
is_half_str = os.environ.get("is_half", "True")
is_half = True if is_half_str.lower() == 'true' else False
is_half = True if is_half_str.lower() == 'true' and not torch.backends.mps.is_available() else False
is_share_str = os.environ.get("is_share","False")
is_share= True if is_share_str.lower() == 'true' else False