Skip to content

hoang97/chatGPT_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot Sally - Friendly simple ChatGPT app

This is an example chatbot app base from the OpenAI API quickstart tutorial. It uses the Flask web framework. Chatbot can talk and reply to speech from user.

We add new feature that overcomes the weakness of ChatGPT - can't have updated information about weather, date and time with google search function.

Setup

  1. If you don’t have Python installed, install it from here

  2. Clone this repository

  3. Navigate into the project directory

    $ cd wechatbot
  4. Create a new virtual environment

    $ python -m venv env
    $ . env/bin/activate
  5. Install the requirements

    $ pip install -r requirements.txt
  6. Make a copy of the example environment variables file

    $ cp .env.example .env
  7. Add your ChatGPT API key and Serp API key to the newly created .env file

  8. Addition config for Recognition Language and Synthesis Voices can find in main.js

config

  1. Run the app

    $ flask run

demo

You should now be able to access the app at http://localhost:5000! For the full context behind this Python example app, check out the OpenAI tutorial.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published