Skip to content
Snippets Groups Projects
Commit c3fd7266 authored by Simon Will's avatar Simon Will
Browse files

Fix name shadowing error in validation view

parent fd0a9408
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ from flask import current_app, jsonify, request ...@@ -7,7 +7,7 @@ from flask import current_app, jsonify, request
from joeynmt_server.app import create_app from joeynmt_server.app import create_app
from joeynmt_server.models import Lock from joeynmt_server.models import Lock
from joeynmt_server.trainer import train_n_rounds, validate from joeynmt_server.trainer import train_n_rounds, validate as validate_on_data
from joeynmt_server.utils.helper import get_utc_now from joeynmt_server.utils.helper import get_utc_now
...@@ -60,7 +60,7 @@ def validate(): ...@@ -60,7 +60,7 @@ def validate():
app = create_app() app = create_app()
with app.app_context(): with app.app_context():
try: try:
validate(config_basename) validate_on_data(config_basename)
except: except:
logging.error('Training failed.') logging.error('Training failed.')
logging.error(traceback.format_exc()) logging.error(traceback.format_exc())
......
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