Skip to content

A chatbot powered by OpenAI API and OpenWeather data

License

Notifications You must be signed in to change notification settings

DiogoLepri/agrochat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgroChat

Descrição da Imagem

AgroChat is an innovative Django project that leverages real-time weather data to provide specific and efficient recommendations for each user. It integrates with the real-time weather data API to offer accurate information about current and future weather conditions. Moreover, it is enhanced with the ChatGPT generative text API, transforming it into an intelligent virtual assistant for agriculture.

Prerequisites

Make sure to have the following requirements installed before getting started:

Usage

  1. Clone this repository:
git clone https://github.com/raphaelgpalma/agrochat.git
  1. Virtual Environment Setup:

I recommend using a virtual environment to isolate project dependencies. Execute the following commands to create and activate a virtual environment:

# On Windows, use venv\Scripts\activate
# On Unix or MacOS, use source venv/bin/activate
python -m venv venv # Or virtualenv venv
source venv/bin/activate
  1. Install Project Dependencies:
pip install -r requirements.txt
  1. Create a .env file at the root of your project:
touch .env
  1. Add on your .env file:
OPENAI_API_KEY=<YOUR OPENAI API KEY>
OPEN_WEATHER_API_KEY=<YOUR OPEN WEATHER API KEY>
  1. Run the Project's Server:
python manage.py runserver

If you want to stop running the server press CTRL+C on Terminal

About

A chatbot powered by OpenAI API and OpenWeather data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published