This Streamlit application allows users to upload PDF files and ask questions about their content using Google's Gemini AI.
- Python 3.8+
- Google AI API Key
- Clone the repository
git clone https://github.com/hawkh/chatwithpdf.git
cd pdf-chat-app
- Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install dependencies
pip install -r requirements.txt
- Set up Google AI API Key
- Go to https://makersuite.google.com/app/apikey
- Create an API key
- Add the key to the
.env
file
- Run the application
streamlit run main.py
- For Streamlit Cloud:
- Push to GitHub
- Connect Streamlit Cloud to your repository
- Set environment variables in Streamlit Cloud settings
- Ensure you have a stable internet connection
- Large PDFs may take longer to process
- Contributions are welcome! Please check the outstanding issues and feel free to open a pull request.