Skip to content

HungBacktracking/CHATBOT-API-CHATGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot with GPT API

This is a Flask application that implements a chatbot that utilizes the GPT (Generative Pre-trained Transformer) API of OpenAI to provide intelligent responses to user queries. The chatbot is integrated with The Movies Database API to ensure up-to-date knowledge about movies or tv-series, and it also incorporates the DALL·E API to generate images based on user description.

Features

  • Interactive chatbot powered by the GPT API.
  • Integration with a movies database API to provide information about movies.
  • Image generation using the DALL·E API.
  • User-friendly web interface built with Flask framework: The application is built using the Flask framework, which allows for easy deployment.

Example Image

Installation

Clone the repository

$ git clone https://github.com/HungBacktracking/CHATBOT-API-CHATGPT.git

Change into the project directory:

$ cd CHATBOT-API-CHATGPT

Install the required dependencies using pip:

$ pip install -r requirements.txt

Usage

Update the API Key of OpenAI and The Movie Database.

Start the Flask development server:

$ flask run

In flask, default port is 5000.

Open your web browser and go to http://localhost:5000 to access the chatbot interface.

Or access the chatbot in your web browser at hungbacktracking.pythonanywhere.com.

Type in your queries and interact with the chatbot. It will provide intelligent responses, retrieve movie information, and generate images based on your description.

Application Structure

├── /static
│   ├── botTopic.txt
│   ├── botImage.txt
│   ├── botNormal.txt
│   ├── botGenres.txt
│   ├── botTitle.txt
│   ├── botParagraph.txt
│   ├── style.css
│   └── script.js
├── /templates
│   └── index.html
├── app.py
└── requirements.txt

Acknowledgments

  • This project utilizes the GPT API, which is powered by OpenAI's GPT-3.5 language model.
  • The movies database API integration is based on The Movies Database API service.
  • Image generation is made possible by the DALL·E API.

About

A Flask app with an advanced chatbot utilizing OpenAI's GPT API and DALL·E API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published