Giter Site home page Giter Site logo

pd-chatbot's Introduction

🤖ChatBot

Install requirements

pip install -r requirements.txt

Note: this application requires Python 3.7.

Standalone

path_to_python3.7_exec pd-chatbot\bot.py 

Socket

First run the socket server program.

path_to_python3.7_exec pd-chatbot\socket\server.py 

Then, in another terminal, run the socket client program.

path_to_python3.7_exec pd-chatbot\socket\client.py 

Now just write the input in the client program and wait for the server (the chatbot) to respond.

RPC

Running the RPC implementation is similar to what was described above for Socket. In a terminal, we first run the server.

path_to_python3.7_exec pd-chatbot\rpc\server.py 

Then, in another terminal, we run the client.

path_to_python3.7_exec pd-chatbot\rpc\client.py 

Same as the Socket version, inputs are made on the client side; wait for the bot response via RPC server.

Web service

The web service was built using Flask and the application runs on localhost:5000 (or http://127.0.0.1:5000), route "/bot". The user must submit (HTTP Post) a JSON via body in the format {"message": "lorem ipsum"} and the return will be a JSON like {"response": "lorem ipsum"} in which the value of "response" is the response of the bot. img1.png img2.png

About the authors and the project

This project was developed for the Distributed Programming class, taught by professor Frederico Lopes at the Federal University of Rio Grande do Norte. 2024.1.

Authors

pd-chatbot's People

Contributors

rcchcz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.