{"id":21681745,"url":"https://github.com/jama5262/tensorflow-emotion-text-detector","last_synced_at":"2025-04-12T06:42:37.861Z","repository":{"id":99037997,"uuid":"221451873","full_name":"jama5262/tensorflow-emotion-text-detector","owner":"jama5262","description":"This is an app that comprises of dockerized tensorflow serving model and flask-react server that communicate together using docker-compose to predict the emotion of a text","archived":false,"fork":false,"pushed_at":"2019-11-20T12:30:38.000Z","size":3892,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:42:35.451Z","etag":null,"topics":["colab-notebook","docker","flask","giphy-api","reactjs","tensorflow-serving","tensotflow"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jama5262.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-13T12:15:36.000Z","updated_at":"2020-12-17T08:00:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c5c937e-e03b-4e44-9fd6-5a123653e89a","html_url":"https://github.com/jama5262/tensorflow-emotion-text-detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Ftensorflow-emotion-text-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Ftensorflow-emotion-text-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Ftensorflow-emotion-text-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jama5262%2Ftensorflow-emotion-text-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jama5262","download_url":"https://codeload.github.com/jama5262/tensorflow-emotion-text-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530612,"owners_count":21119592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colab-notebook","docker","flask","giphy-api","reactjs","tensorflow-serving","tensotflow"],"created_at":"2024-11-25T15:31:11.990Z","updated_at":"2025-04-12T06:42:37.846Z","avatar_url":"https://github.com/jama5262.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# tensorflow-emotion-text-detector\n\nThis is an app that comprises of dockerized tensorflow serving model and flask server that communicate together using docker-compose to predict the emotion of a text\n\n[![Build Status](https://travis-ci.org/jama5262/tensorflow-emotion-text-detector.svg?branch=flask-server)](https://travis-ci.org/jama5262/tensorflow-emotion-text-detector)\n[![Coverage Status](https://coveralls.io/repos/github/jama5262/tensorflow-emotion-text-detector/badge.svg?branch=flask-server)](https://coveralls.io/github/jama5262/tensorflow-emotion-text-detector?branch=flask-server)\n\nThe two docker images can be found here at `Docker Hub`\n\n1. [jama5262/tensorflow-emotion-text-detector](https://hub.docker.com/repository/docker/jama5262/tensorflow-emotion-text-detector).\n2. [jama5262/flask-tensorflow-emotion-text-detector](https://hub.docker.com/repository/docker/jama5262/flask-tensorflow-emotion-text-detector)\n\n\n## Demo\n\nDemo|\n------------ |\n\u003cimg src=\"https://github.com/jama5262/tensorflow-emotion-text-detector/blob/react-client/gif/image1.gif\" alt=\"alt text\" height=\"500px\"\u003e | \n\n## Built-With\n\n- [Docker](https://www.docker.com/), [Docker-Compose](https://docs.docker.com/compose/)\n- [Tensorflow](https://www.tensorflow.org/), [Tensorflow Estimator](https://www.tensorflow.org/guide/estimator), [Tensorflow-Serving](https://www.tensorflow.org/tfx/guide/serving), Google-Colab\n- [Giphy API](https://developers.giphy.com/docs/api/)\n- [Flask](http://flask.palletsprojects.com/en/1.1.x/)\n- [React](https://reactjs.org/), [Redux](https://redux.js.org/), [React-Redux](https://react-redux.js.org/), [React Bootstrap](https://react-bootstrap.github.io/)\n\nThis repo contains four branches which are the following\n\n1. [`master`](https://github.com/jama5262/tensorflow-emotion-text-detector) branch - Contains the `docker-compose.yml` file. This is used to start the two containers from the tensorflow-serving and flask server docker image and to also allow communication between them. **See the [Installation](#Installation) and [Usage](#Usage) section on how to get started**\n\n```\nversion: \"3\"\n\nservices: \n  tf-model:\n    image: jama5262/tensorflow-emotion-text-detector\n    ports: \n     - 8501:8501\n  flask-server:\n    image: jama5262/flask-tensorflow-emotion-text-detector\n    ports:\n      - 5000:5000\n    depends_on: \n      - tf-model\n```\n\n2. [`colab-notebook`](https://github.com/jama5262/tensorflow-emotion-text-detector/tree/colab-notebook) branch - This contains the notebook used to `create` and `export` the tensorflow estimator model\n\n3. [`flask-server`](https://github.com/jama5262/tensorflow-emotion-text-detector/tree/flask-server) branch - Contains the flask server-side that hosts the react build files and the predict emotion endpoint.\n\n4. [`react-client`](https://github.com/jama5262/tensorflow-emotion-text-detector/tree/react-client) branch - And this branch contains the react client-side UI\n\n## Installation\n\n### Cloning\nClone this repo from the `master` branch to your local machine using `https://github.com/jama5262/tensorflow-emotion-text-detector.git`\n\nAfter cloning, `cd` into the project\n\nGreat the project has been setup 👍\n\n## Usage\n\n_**Before you start using, please check that the ports `5000` and `8501` are not in use**_\n\nPort `5000` is used by flask server and port `8501` is used by tensorflow serving\n\nTo start using it locally, run the following `docker` command\n```\ndocker-compose up\n```\n\nAfter that check your http://localhost:5000\n\n## Support\n\nReach out to me at one of the following places!\n\n- Email at jama3137@gmail.com\n- Twitter [timedjama5262](https://twitter.com/timedjama5262)\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2019 Jama Mohamed\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjama5262%2Ftensorflow-emotion-text-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjama5262%2Ftensorflow-emotion-text-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjama5262%2Ftensorflow-emotion-text-detector/lists"}