Skip to content

raphaelgpalma/agrochat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgroChat

Descrição da Imagem

AgroChat is an 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. Using Docker to create the reverse proxy server Ensure Docker is installed by referring to the Docker Installation Docs. Run the following command:
docker run -dp 3040:3040 pawanosman/chatgpt:latest

Done! You can now connect to your local server's API at:

http://localhost:3040/v1/chat/completions

Note that the base URL is http://localhost:3040/v1

  1. Add on your .env file:
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

An agribusiness assistent powered by OpenAI API and OpenWeather data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors