page_type | description | languages | products | |||
---|---|---|---|---|---|---|
sample |
Application to summarize text from the scanned document. |
|
|
Application to summarize text from the scanned document. This is Python 3 Flask application with Angular front-end.
Installed software:
- Python 3 - standalone or as a part of Conda.
- Node.js
- Angular Cli
Create your virtual Python environment (using conda or venv). Switch to your new environment. Run from the project root folder:
pip install -r requirements.txt
Create environment variables:
- COMPUTER_VISION_SUBSCRIPTION_KEY - your computer vision subscription key,
- COMPUTER_VISION_ENDPOINT - url of your computer vision resource
Build is made by Angular Cli. To build the project on Windows machine
cd front-end
npm run-script buildWin
buildWin
will create dist folder in the project root
containing Flask and Angular front-end applications.
To run locally on Linux machine:
cd dist
export FLASK_APP=application.py
flask run
To run locally on Windows machine:
cd dist
set FLASK_APP=application.py
flask run
To deploy/update you application run
cd dist
az webapp up --name <your WebApp name>