private-gpt
private-gpt copied to clipboard
Update privateGPT.py
Move the code inside the main function to a new function, such as run_qa_system()
to better separate concerns and makes the code easier to read and understand. Encapsulate the main functionality in a function to improve modularity and reusability. Instead of assigning environment variables to local variables, you can directly access them where needed, reducing unnecessary code.