marks
commited on
Commit
·
3058f90
1
Parent(s):
8660783
Fixed no description
Browse files- api_clients.py +1 -1
api_clients.py
CHANGED
|
@@ -123,7 +123,7 @@ class ElevenLabsClient:
|
|
| 123 |
voices = elevenlabs.voices()
|
| 124 |
return [(
|
| 125 |
voice.voice_id,
|
| 126 |
-
f"{voice.name} - {voice.description[:50]}
|
| 127 |
) for voice in voices]
|
| 128 |
except Exception as e:
|
| 129 |
logger.error("Failed to fetch voices from ElevenLabs", exc_info=True)
|
|
|
|
| 123 |
voices = elevenlabs.voices()
|
| 124 |
return [(
|
| 125 |
voice.voice_id,
|
| 126 |
+
f"{voice.name} - {voice.description[:50] + '...' if voice.description else ''}"
|
| 127 |
) for voice in voices]
|
| 128 |
except Exception as e:
|
| 129 |
logger.error("Failed to fetch voices from ElevenLabs", exc_info=True)
|