GithubHelp home page GithubHelp logo

kaisar420 / tensorflow-chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nimeshabuddhika/tensorflow-chatbot

0.0 3.0 0.0 66.95 MB

Tensorflow chatbot which is capable of interacting with user through Rest Api, Web interface, GUI and CLI.

Python 70.00% HTML 0.21% CSS 0.49% JavaScript 0.63% C 1.21% C++ 25.07% DTrace 0.01% Fortran 0.02% CMake 0.01% Batchfile 0.01% PowerShell 0.01% Tcl 2.35%

tensorflow-chatbot's Introduction

Tensorflow Chatbot

This project is capable of interacting with user in four different ways. Each of these module are functioning independently.

  • Web interface
  • Reset Api
  • GUI
  • CLI

And also you can train your own data model which suit to your business model. The data model format is not complex.

Installing

Program requires following dependencies

After successfully installation of above dependencies, you need to follow these steps in order to train the bot.

  • You can find data model from /Bot/content.json and change the content as you wish.
  • Execute train.py file which is inside /Bot/ directory to train the model that you have prepared.
  • Then, You are done!

Getting Started

You can interact with chat bot any of these four method

Web interface

Django framework is used to implement this web app. You can install Django by fallowing these steps from here

After installation of Django framework, you need to follow these steps

  • Find settings.py file inside /Tensorflow_Chatbot/ directory.
  • Replace 96 line according to the path of the static folder of your project under *STATICFILES_DIRS * variable.
  • Then execute following command inside the root directory.
python manage.py runserver

web

Rest api

This app allows you to interact with bot using a rest api. You can find the controller file from /Tensorflow_Chatbot/Api/controller.py location. To execute this Rest api you also need to install Django framework

  • Request URL    : http://127.0.0.1:8000/api
  • Request Type    : 'POST'
  • Pay load    : {"msg" : "What is your name"}
  • Response    : {"ques" : "What is your name", "res":"I'm Slack", "time" :"2018-01 10:07:32"}

api

GUI

You can find UI directory from root directory and then execute ChatView.py file. Before executing this you need to install pygubu. Pygubu is a RAD tool which helps to develop python tknter base user interfaces.

  • Download pygubu from here.
  • And then extract .tar.gz file and execute following command.
python setup.py install

ui

CLI

You can interact with bot through command line interface. So find cli.py file from /CLI directory and then execute.

cli

Built With

Author

  • Nimesha Buddhika - Linkedin - University of Moratuwa, Faculty of IT

tensorflow-chatbot's People

Contributors

nimeshabuddhika avatar

Watchers

James Cloos avatar Iparhan avatar  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.