This Gemini AI Chatbot is a Streamlit web application that integrates with Google's Generative AI models for various tasks such as chat, image captioning, text embedding, and asking questions.
- Chat: Engage in conversation with Gemini AI using natural language prompts.
- Image Captioning: Upload an image and generate a descriptive caption for it.
- Embed Text: Get embeddings for input text using pre-trained models.
- Ask me Anything: Ask Gemini AI any question and receive a response.
-
Clone this repository:
git clone https://github.com/sshreyy1/gemini-ai-chatbot-demo.git cd gemini-ai
-
Install dependencies:
pip install -r requirements.txt
-
Set up Google API Key:
- Obtain a Google API Key from the Google Cloud Console.
- Create a
config.json
file in the project directory with the following structure:
{ "GOOGLE_API_KEY": "your-api-key" }
-
Run the Streamlit app:
streamlit run main.py
-
Checkout here