mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-21 21:47:54 +00:00
bugfix
This commit is contained in:
parent
14ff02b6d2
commit
e1f0382731
@ -126,6 +126,10 @@ async def text2Audio(request: LollmsText2AudioRequest):
|
||||
validate_path(request.fn,[str(lollmsElfServer.lollms_paths.personal_outputs_path/"audio_out")])
|
||||
else:
|
||||
request.fn = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_out"/"tts2audio.wav"
|
||||
|
||||
# Verify the path exists
|
||||
request.fn.parent.mkdir(exists_ok=True, parents=True)
|
||||
|
||||
try:
|
||||
if lollmsElfServer.tts is None:
|
||||
return {"url": None, "error":f"No TTS service is on"}
|
||||
|
Loading…
Reference in New Issue
Block a user