From 9fa3da91a7a66c0e0aed8a43f13ad7456491b764 Mon Sep 17 00:00:00 2001 From: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com> Date: Wed, 21 Feb 2024 13:21:37 +0000 Subject: [PATCH] Update config.py --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 1f74128..eaf292f 100644 --- a/config.py +++ b/config.py @@ -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