Hi there! Meet your friendly guide to this PDF. Want to unlock its insights quickly? Ask me anything, or explore these common questions:
To run this PDF chatbot, you'll need a virtual environment to manage dependencies effectively. Here's a step-by-step guide:
Prerequisites:
- Python 3.7+ (Check version:
python --version
in your terminal.) venv
module included with Python 3.3+ (Link to instructions)
Steps:
- Open a terminal/command prompt.
- Navigate to your project directory: Use
cd <path_to_project_directory>
. - Create a virtual environment:
- PowerShell:
python -m venv myenv
- CMD:
python -m venv myenv
(Replacemyenv
with your desired name.)
- PowerShell:
- Activate the virtual environment:
- PowerShell:
.\myenv\Scripts\activate
- CMD:
myenv\Scripts\activate
- PowerShell:
- Install dependencies:
pip install -r requirements.txt
(Downloadrequirements.txt
if not present.)
Troubleshooting:
- If
venv
is missing, install it usingpip install virtualenv
within the activated virtual environment. - For issues with Python version or
pip
installation, refer to the documentation.
Running the Chatbot:
- Within the activated virtual environment:
- Run the command:
streamlit run deployment.py