Skip to content

egillanton/flask-text-annotation-tool

Repository files navigation

flask-text-annotation-tool

Watch the video

Table of Contents

Click to expand
  1. Introduction
  2. Setup
  3. Authors
  4. License
  5. References

1 Introduction

2 Setup

Make sure to have Python 3.6 or newer, and pip installed.

Get virtualenv

$ pip install virtualenv

Create a virtual environment

Make sure to create a Python3 instead of Python2 environment by referencing its binaries.
$ which python3
/usr/bin/python3

You can use any name you want, we will use "venv".

$ virtualenv -p /usr/bin/python3  venv

Activate environment

$ . venv/bin/activate

Now you have activated your virtual environment and your terminal should display its name as so:

$(venv)

Install requried packages

$(venv) pip3 install -r requirements.txt  

Run The Application

$(venv) flask run

You’ll see output similar to this:

Serving Flask app "app"
Environment: development
Debug mode: on
Running on http://127.0.0.1:5000/
Restarting with stat
Debugger is active!
Debugger PIN: 298-204-950

Open the link in your browser.

Push to Heroku

Make sure you have installed Heroku CLI, and have authentication to the Heroku project.

Install the Heroku CLI Download and install the Heroku CLI.

If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key. Login into Heroku

$ heroku login

Clone the repository Use Git to clone heroku-app's source code to your local machine.

$ heroku git:clone -a <heroku-app>
$ cd <heroku-app>

Deploy your changes Make some changes to the code you just cloned and deploy them to Heroku using Git.

$ git add .
$ git commit -am "make it better"
$ git push heroku master

Set-Up Google AutoML

$ export GOOGLE_APPLICATION_CREDENTIALS=./credentials.json
$ gcloud auth login
$ gcloud config set project ice-atis
$ gcloud auth activate-service-account [email protected] --key-file=./credentials.json --project=translate
$ gcloud projects add-iam-policy-binding translate --member [email protected]

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

🌟 PLEASE STAR THIS REPO IF YOU FOUND SOMETHING INTERESTING 🌟

https://stackoverflow.com/questions/55176012/google-api-core-exceptions-permissiondenied-403-the-caller-does-not-have-permis

About

Text Annotation Tool for the ATIS Dataset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published