mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-20 13:13:16 +00:00
Fixed server
This commit is contained in:
parent
84e25d2714
commit
da7ede4f4b
@ -118,7 +118,7 @@ async def serve_audio(path: str):
|
||||
FileResponse: The file response containing the requested audio file.
|
||||
"""
|
||||
root_dir = lollmsElfServer.lollms_paths.personal_outputs_path
|
||||
file_path = os.path.join(root_dir, 'audio_out/') / path
|
||||
file_path = Path(root_dir)/ 'audio_out' / path
|
||||
|
||||
if not Path(file_path).exists():
|
||||
raise HTTPException(status_code=404, detail="File not found")
|
||||
|
Loading…
Reference in New Issue
Block a user