Skip to content

Commit

Permalink
fix path empty
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Jun 10, 2024
1 parent 794939b commit 31ce067
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apsbot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,12 @@ def chat():
def chat_data(folder_path):
"""This command starts a chat with knowledge based on data in the specified folder."""
click.echo("Starting chat with the bot. Type 'exit' to end the chat.")
if not os.path.exists(folder_path):
click.echo("Invalid folder path.")
return
# Read and process CSV files in the specified folder
knowledge_base = read_and_process_csv(folder_path)
Config.save_folder_path(folder_path)
while True:
user_input = input("You: ")
if user_input.lower() == 'exit':
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="apsbot",
version="0.1.8",
version="0.1.9",
packages=find_packages(),
include_package_data=True,
install_requires=[
Expand Down

0 comments on commit 31ce067

Please sign in to comment.