[Frontend] Loosen Validation for TTS Models with No Uploaded Speakers (#5878)
Signed-off-by: Alex Brooks <albrooks@redhat.com>
This commit is contained in:
1 parent
4b6d6d5cf7
commit
fe54ecc388
4 files changed
+172
-13
No files matched your search
@@ -1482,8 +1482,7 @@ async def list_voices(raw_request: Request):
|
||||
status_code=HTTPStatus.NOT_FOUND,
|
||||
)
|
||||
|
||||
# Get all speakers (both model built-in and uploaded)
|
||||
speakers = sorted(handler.supported_speakers) if handler.supported_speakers else []
|
||||
speakers = sorted(handler._get_available_voices())
|
||||
|
||||
# Get uploaded speakers details
|
||||
uploaded_speakers = []
|
||||
|
||||
Reference in new issue
Block a user