yvann-ba / Robby-chatbot

AI chatbot 🤖 for chat with CSV, PDF, TXT files 📄 and YTB videos 🎥 | using Langchain🦜 | OpenAI | Streamlit ⚡
MIT License
766 stars 287 forks source link

Setup_script-update #63

Closed sorydi3 closed 8 months ago

sorydi3 commented 9 months ago

Instead of using echo commands, the script utilizes cat with here documents (<<EOL) to write the content of credentials.toml and config.toml directly to the respective files, improving readability.

The script works from the current directory where it is executed.

A target_directory variable is set to the current working directory ($PWD), which allows the script to work in any directory.

The mkdir, cat, and file creation commands use the target_directory variable to ensure the files are created in the correct location.

A message is added at the end of the script to indicate where the configuration files have been created.

With these changes, the script will work from the home directory or any other directory, and the configuration files will be created in the current directory

yvann-ba commented 8 months ago

Thanks for the good work !