This repository contains a simple Streamlit application that utilizes Google's Generative AI to generate content based on a user-provided image. Specifically, the application takes an image as input and generates a text response related to tax calculations based on the visual content.
- Python 3.x
- Streamlit
- Google Generative AI package (
google.generativeai
) - PIL (Pillow) library for image processing
-
Installation:
- Install the necessary Python packages using pip:
pip install -r requirements.txt
- Install the necessary Python packages using pip:
-
API Key:
- Obtain your Gemini Pro key from Google's Maker Suite.
- Here is a step by step guide on how to get your gemini pro api key
- Input this key into the application via the Streamlit sidebar when prompted.
-
Running the Application:
- Navigate to the directory containing the code.
- Run the Streamlit application using the following command:
streamlit run takehomecalc.py
-
Input Requirements:
- Upload an image file using the file uploader in the Streamlit sidebar.
- Provide your Gemini Pro key in the specified text input field.
- Click the "Submit" button to initiate the content generation process.
-
Output:
- Upon successful execution, the application will display the generated text content related to tax calculations based on the uploaded image.