Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.11 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.11 KB

PDF Chat Application with Google Gemini

Overview

This Streamlit application allows users to upload PDF files and ask questions about their content using Google's Gemini AI.

Prerequisites

  • Python 3.8+
  • Google AI API Key

Setup Instructions

  1. Clone the repository
git clone https://github.com/hawkh/chatwithpdf.git
cd pdf-chat-app
  1. Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  1. Install dependencies
pip install -r requirements.txt
  1. Set up Google AI API Key
  1. Run the application
streamlit run main.py

Deployment

  • For Streamlit Cloud:
    1. Push to GitHub
    2. Connect Streamlit Cloud to your repository
    3. Set environment variables in Streamlit Cloud settings

Notes

  • Ensure you have a stable internet connection
  • Large PDFs may take longer to process

🤝 Contributing

  • Contributions are welcome! Please check the outstanding issues and feel free to open a pull request.