diff --git a/benchmark/scripts/be_flask.py b/benchmark/scripts/be_flask.py index fc639b7..ebed0fe 100755 --- a/benchmark/scripts/be_flask.py +++ b/benchmark/scripts/be_flask.py @@ -65,7 +65,10 @@ def show(): selected_file = request.form["selected-file"] with open(os.path.join(Folders.results, selected_file)) as f: data = json.load(f) - summary = process_data(selected_file, data) + try: + summary = process_data(selected_file, data) + except Exception as e: + return render_template("error.html", message=str(e)) return render_template( "report.html", data=data, diff --git a/benchmark/scripts/templates/partials/table_report_bootstrap.html b/benchmark/scripts/templates/partials/table_report_bootstrap.html index f88210d..12b6afb 100644 --- a/benchmark/scripts/templates/partials/table_report_bootstrap.html +++ b/benchmark/scripts/templates/partials/table_report_bootstrap.html @@ -1,6 +1,6 @@
Model | -Metric | -Platform | -Date | -Time | -Stratified | -Title | -Score | -- |
---|---|---|---|---|---|---|---|---|
{{ parts[2] }} | -{{ parts[1] }} | -{{ parts[3] }} | -{{ parts[4] }} | -{{ parts[5] }} | -{{ 'True' if stratified =='1' else 'False' }} | -{{ "%s" % data["title"] }} | -{{ "%.6f" % data["score"] }} | -- {{ button_pre | safe }}{{ file }}{{ button_post | safe }} - - | -