mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 04:22:46 +08:00
Update inference_webui.py
精简代码
This commit is contained in:
parent
861658050b
commit
220367f90c
@ -72,8 +72,6 @@ os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1' # 确保直接启动推理UI时
|
||||
|
||||
if torch.cuda.is_available():
|
||||
device = "cuda"
|
||||
elif torch.backends.mps.is_available():
|
||||
device = "cpu"
|
||||
else:
|
||||
device = "cpu"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user