From d840a5237738487eb4ec924bdc852d3889e89905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Johnny?= Date: Wed, 26 Jun 2024 19:41:29 -0300 Subject: [PATCH] Fix Image Display Issue on Windows by Setting a Static Path (#2382) change string path --- src/backend/base/langflow/api/v1/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/api/v1/files.py b/src/backend/base/langflow/api/v1/files.py index a96397e08..1e3d828b2 100644 --- a/src/backend/base/langflow/api/v1/files.py +++ b/src/backend/base/langflow/api/v1/files.py @@ -131,8 +131,8 @@ async def list_profile_pictures(storage_service: StorageService = Depends(get_st people = await storage_service.list_files(flow_id=people_path) # type: ignore space = await storage_service.list_files(flow_id=space_path) # type: ignore - files = [Path("People") / i for i in people] - files += [Path("Space") / i for i in space] + files = [f"People/{i}" for i in people] + files += [f"Space/{i}" for i in space] return {"files": files}