Day 5

 





Today I got a bit more comfortable with creating and activating a virtual environment in Python. Conceptually it is starting to make more sense. Also drew some parallels between "pip" in Python and "SPM" in swift. The command "pip install XXXX" finally makes sense. 

My steps for activating a virtual environment
  • Navigate to the project folder using the terminal: "cd XXXX" 
  • Once in the folder, run the command "python3 -m venv .venv" 
  • Click "yes" on the VS Code dialogue box requesting confirmation for new environment
  • Terminate current terminal 
  • Restart terminal by running a Python Script (e.g. print("hello world")
  • You are now in the new virtual environment as indicated by the (.venv) at the beginning of the prompt in the terminal window.

Finished by creating a basic chatbot website in Python using Streamlit. It answers queries by referencing a local .txt file. I also tested it successfully with Youtube transcripts simply by using Llama Index Youtube loader and the Youtube Link, and think I should be able to easily modify the code to accept files stored remotely, like in a Google Drive folder for instance by using a different data loader. 

Tempted to continue, but gonna call it a day to avoid burnout. 

Comments