This is a Streamlit web application that allows users to upload a PDF document, extract text from it, and ask questions based on the extracted content using Google Gemini AI.
- Upload a PDF document and extract text.
- Ask any questions based on the text in the document.
- Get answers generated by Google Gemini AI (using
google-generativeai
).
To run this project locally, you'll need to have Python installed.
-
Clone the repository:
git clone https://github.com/your-username/gemini-model-integration.git cd gemini-model-integration
-
Update the streamlit-app.py file: Update it by replacing the sentence "your api key" with your actual api key you generated from the google cloud
-
Install the dependencies:
pip install -r requirements.txt
-
Run the streamlit app:
streamlit run streamlit-app.py