Giter Site home page Giter Site logo

bryan-az / wordpress-ai-extension Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.46 MB

An extension that exposes a image detection machine learning model on wordpress

License: Creative Commons Zero v1.0 Universal

Dockerfile 3.73% Python 26.21% Shell 1.73% PHP 36.98% JavaScript 31.36%

wordpress-ai-extension's Introduction

The goal for this project is to deploy a machine learning model that is hosted on a live wordpress website, by launching a docker-compose stack.

To use this app plugin, you need to run the bash.sh script in the main outer folder by running bash run.sh, and then once the wordpress site is available on localhost in your browser, you can then install the wordpress and after you're in the admin dashboard, head to the plugin section & activate the kangaroo detector plugin. Once it's activated you can create a post or use any available post to add a short-code block on your page with the code: [kangaroo_detector]

Once you publish & save, the post/page will now be able to present a form with an upload link. You can upload a png or jpg image. The plugin will communicate with the flask python app.py and then return a score as a response back to the javascript and edit the html to present the score!

The overview of the model is available to view on medium, here: https://medium.com/@bryanambzam/a-detection-algorithm-using-scikit-learn-chat-gpt-4-to-identify-images-of-kangaroos-8d3aae90dcb6

docker-compose.yml: This file will define the services that make up the application in docker so they can be run together in an isolated environment.

Dockerfile: This file will define the environment in which our Python script will run.

requirements.txt: This file will list the Python dependencies that need to be installed in the Docker container.

app.py: This is the main Python script that will load the model, connect to the MySQL database, handle image uploads, and return the score.

kangaroo_classifier_model.pki: This is the pre-trained machine learning model that will be used to predict the score.

wordpress_plugin.php: This is the WordPress plugin that will create the front-end interface for users to upload images and view the score.

wordpress-ai-extension's People

Contributors

bryan-az 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.