From a12f09b761d46e8d3c4f923ecd3615b043bc7521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99?= Date: Fri, 17 Nov 2023 17:31:23 +0100 Subject: [PATCH] More interface testing --- ASR_NL_benchmark/interface.py | 4 ++++ ASR_NL_benchmark/templates/select_files.html | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ASR_NL_benchmark/interface.py b/ASR_NL_benchmark/interface.py index 394fd27..07f3eba 100644 --- a/ASR_NL_benchmark/interface.py +++ b/ASR_NL_benchmark/interface.py @@ -20,6 +20,10 @@ def upload_page(): hyp = os.path.join(os.path.sep,'input',request.form.get('hyp')) ref = os.path.join(os.path.sep,'input',request.form.get('ref')) kind = request.form.get('kind') + skip_ref_norm = request.form.get('skip_ref_norm') + skip_hyp_norm = request.form.get('skip_hyp_norm') + print(skip_hyp_norm) + print(skip_ref_norm) global benchmarking benchmarking = pipeline.Pipeline(hyp, 'ctm', ref, 'stm', kind) Thread(target=benchmarking.main).start() diff --git a/ASR_NL_benchmark/templates/select_files.html b/ASR_NL_benchmark/templates/select_files.html index ff634ac..5d903d8 100644 --- a/ASR_NL_benchmark/templates/select_files.html +++ b/ASR_NL_benchmark/templates/select_files.html @@ -30,12 +30,10 @@

Select Hypothese and Reference files or folders

- -

Skip the normalization step for the hyp file(s)

+ Skip the normalization step for the hyp file(s) - -

Skip the normalization step for the ref file(s)

+ Skip the normalization step for the ref file(s)