mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-22 05:57:50 +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")])
|
validate_path(request.fn,[str(lollmsElfServer.lollms_paths.personal_outputs_path/"audio_out")])
|
||||||
else:
|
else:
|
||||||
request.fn = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_out"/"tts2audio.wav"
|
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:
|
try:
|
||||||
if lollmsElfServer.tts is None:
|
if lollmsElfServer.tts is None:
|
||||||
return {"url": None, "error":f"No TTS service is on"}
|
return {"url": None, "error":f"No TTS service is on"}
|
||||||
|
Loading…
Reference in New Issue
Block a user