Demo Link: Website Demo
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.
git clone https://github.com/FareedKhan-dev/Gemini-AI-chatbot.git
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.
pip install -r requirements.txt
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.