This Streamlit application allows users to interactively ask questions related to the content of uploaded PDF files. The application utilizes Streamlit for the user interface, PyPDF2 for PDF processing, and Google Generative AI for generating responses.
- Python 3.x
- Pip (Python package installer)
-
Clone the repository:
git clone https://github.com/your_username/ChatwithPDF.git
-
Navigate to the project directory:
cd ChatwithPDF
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows
-
Install the required packages:
pip install -r requirements.txt
-
Set up environment variables:
Create a
.env
file in the project directory and add your Google API key:GOOGLE_API_KEY=your_google_api_key
Run the Streamlit app using the following command:
streamlit run app.py