mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
Fix test_initial_state() test failure on apple silicon.
This commit is contained in:
parent
29066f7c9f
commit
c16ff335e4
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def test_initial_state(kokoro_backend):
|
||||||
assert kokoro_backend._model is None
|
assert kokoro_backend._model is None
|
||||||
assert kokoro_backend._pipelines == {} # Now using dict of pipelines
|
assert kokoro_backend._pipelines == {} # Now using dict of pipelines
|
||||||
# Device should be set based on settings
|
# Device should be set based on settings
|
||||||
assert kokoro_backend.device in ["cuda", "cpu"]
|
assert kokoro_backend.device in ["cuda", "cpu", "mps"]
|
||||||
|
|
||||||
|
|
||||||
@patch("torch.cuda.is_available", return_value=True)
|
@patch("torch.cuda.is_available", return_value=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue