mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-17 10:19:51 +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.
|
FileResponse: The file response containing the requested audio file.
|
||||||
"""
|
"""
|
||||||
root_dir = lollmsElfServer.lollms_paths.personal_outputs_path
|
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():
|
if not Path(file_path).exists():
|
||||||
raise HTTPException(status_code=404, detail="File not found")
|
raise HTTPException(status_code=404, detail="File not found")
|
||||||
|
Loading…
Reference in New Issue
Block a user