Skip to content
Snippets Groups Projects
Commit a0760eb2 authored by Vincent Emonet's avatar Vincent Emonet
Browse files

updated argos to 1.1.2, fix argos translate init and templates.html render

parent 90d74379
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
......
......@@ -68,7 +68,7 @@ def create_app(char_limit=-1, req_limit=-1, batch_limit=-1, ga_id=None, debug=Fa
@app.route("/")
def index():
return render_template(resource_filename('app', 'templates/index.html'), gaId=ga_id, frontendTimeout=frontend_timeout)
return render_template('index.html', gaId=ga_id, frontendTimeout=frontend_timeout)
@app.route("/languages")
def langs():
......
......@@ -7,7 +7,7 @@ def boot():
check_and_install_models()
def check_and_install_models(force=False):
if len(package.get_installed_packages()) == 0 or force:
if len(package.get_installed_packages()) < 2 or force:
# Update package definitions from remote
print("Updating language models")
package.update_package_index()
......
argostranslate==1.1.0
argostranslate==1.1.2
Flask==1.1.2
flask-swagger==0.2.14
flask-swagger-ui==3.36.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment