Giter Club home page Giter Club logo

stanleythebot's Introduction

StanleyTheBot

intro

StanleyTheBot is a simple Python web-app that serves as a image recognition chat-bot. The app simply asks for the name of the user, then asks the user for a photo to classify.

background

I've always had great interest in Artificial Intelligence and I have strive to thrive in this field. In my endeavor to understand A.I., I realized that Python is one of the major programming languages in the field. So, I decided to learn Python >at least the basics. After getting a comfortable with the basics of Python, I wanted to build a simple program with Python that relates to A.I. Thereby, I created StanleyTheBot.

backbone

The base of StanleyTheBot is Flask and Jinja. Flask framework handles the dynamicity of the app: redirection of pages, variables in HTML. Images are classified with IBM Watson Visual Recognition API. Firebase storage is used to store the images uploaded. UI is done with MaterializeCSS. StanleyTheBot is deployed to Heroku StanleyTheBot.herokuapp.com.

walkthrough

The main python file that controls the app is index.py. All the web pages in this app are in templates folder. Static folder holds other files that are used in the HTML pages. The following files are used for deploying the app to Heroku:

  • _pycache_
  • config.py
  • config.pyc
  • Procfile
  • requirements.txt
  • settings.py

demo

  1. Stanley introduces itself and asks for user's name.
  2. User provides a non-empty name.
  3. Stanley mentions its purpose.
  4. User picks a photo.
  5. Stanley uploads the photo to Firebase storage.
  6. Link to photo is received from Firebase.
  7. IBM Watson uses the link to access photo.
  8. IBM Watson returns a dictionary.
  9. Stanley processes the dictionary.
  10. Stanley replies user with processed result.

stanleythebot's People

Contributors

weirdestnerd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

stanleythebot's Issues

Heroku Caching

There seems to be a problem with the caching. Caching is used to kick users out of the program (in other words, reset the program) after 10 minutes since users don't have to sign up/log in. But, for some weird reasons, the program resets after users pick a photo. This doesn't happen when I run the program locally, so I'm guessing Heroku is messing with the cache.

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.