Skip to content

bahetiaditya/Gemini-AI-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemini AI Chatbot

Snapshot1

Overview

This repository contains a basic implementation of a web app using the Gemini AI chatbot API. The web app is built using the Flask framework in Python. The Gemini AI chatbot is powered by the Gemini Pro API, allowing users to interact with a chatbot trained on a massive dataset of 1.5 Trillion tokens.

Please note that the Gemini API allows 60 queries per minute.

Local Setup

Step 1: Clone the Repository

Download the repository

Step 2: Add API Key

Replace the following line of code in app.py with your Gemini API key:

my_api_key_gemini = os.getenv('my_new_api_key_here')

Replace it with:

my_api_key_gemini = "your_api_key_here"

You can obtain your API key from here. Once you have the key, proceed to the next step.

Step 3: Install Dependencies

Step 4: Run the Web App

In the terminal, execute the following command:

python app.py

This will launch a web app locally. Open your browser and navigate to the provided address (usually http://localhost:5000/) to interact with the Gemini AI chatbot.

Feel free to explore and customize the code according to your needs. Contributions are welcome!

Notes

  • Ensure that you have Python installed on your system.
  • Use a virtual environment for better isolation of dependencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors