Skip to content

Commit

Permalink
Fix Image Display Issue on Windows by Setting a Static Path (#2382)
Browse files Browse the repository at this point in the history
change string path
  • Loading branch information
italojohnny authored and ogabrielluiz committed Jun 27, 2024
1 parent d7a9859 commit b06a878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/base/langflow/api/v1/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit b06a878

Please sign in to comment.