This repository contains a Django-based chatbot project that utilizes the Gemini AI API for a large language model (LLM).
To use the chatbot application, you need to have Python and Django installed on your system. Additionally, you'll need to install the google-generativeai package using pip.
-
Install Python and Django:
- Install Python from python.org
- Install Django using pip:
pip install django
-
Install the
google-generativeaipackage:pip install -q -U google-generativeai
-
Google API Key Setup
This repository contains a Django project that utilizes the Google API for various functionalities. To use the Google API services, you need to obtain an API key from the Google Cloud Platform.
-
Visit the ai.google.dev website and sign in with your Google account.
-
Paste your api key in root Directory/api/views.py
GOOGLE_API_KEY = "your_api_key"
- Clone the repository:
git clone https://github.com/ahammed03/chatbot.git
- Navigate to the project directory:
cd chatbot - Run the Django development server:
python manage.py runserver