UI service for the translator-go
translator-ui it's a UI for the translator-go application.
The tranlator-ui application based on Flask framework To launch, necessary install all the Python dependency described in the file requirements, after lounch Flask application:
pip install --no-cache-dir -r requirements
export FLASK_APP=ui.py
flask run
Open the url:
http://127.0.0.1:5000/
By default the translator-go application should be run on the same vm-instance and avalible to URL http://localhost:8080, else necessary export an environment variable TRANSLATE_SRV contain the translate-go URL, for example:
export TRANSLATE_SRV=http://translate-back.tr.srv.local:8080
For convenience of running application created Dockerfile, so possible to build and run docker image.