Skip to content

Commit

Permalink
fix: check if data path exist
Browse files Browse the repository at this point in the history
  • Loading branch information
datvodinh authored Oct 10, 2024
1 parent 7a2bdba commit 7d5355a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rag_chatbot/ui/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def __init__(
self._logger = logger
self._host = host
self._data_dir = os.path.join(os.getcwd(), data_dir)
if not os.path.exists(self._data_dir):
os.makedirs(self._data_dir, exist_ok = True)
self._avatar_images = [
os.path.join(os.getcwd(), image) for image in avatar_images
]
Expand Down

0 comments on commit 7d5355a

Please sign in to comment.