Skip to content

Commit

Permalink
Merge pull request #26 from opensource-spraakherkenning-nl/skip-norm-…
Browse files Browse the repository at this point in the history
…interf

Final interface touches (hopefully)
  • Loading branch information
greenw0lf authored Nov 20, 2023
2 parents 86d4596 + 92df5f3 commit 0db9095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ASR_NL_benchmark/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def upload_page():
print(skip_hyp_norm)
print(skip_ref_norm)
global benchmarking
benchmarking = pipeline.Pipeline(hyp, 'ctm', ref, 'stm', kind)
benchmarking = pipeline.Pipeline(hyp, 'ctm', ref, 'stm', kind, skip_ref_norm, skip_hyp_norm)
Thread(target=benchmarking.main).start()
return redirect(f'/progress?ref={ref}&hyp={hyp}')
return render_template('select_files.html')
Expand Down
4 changes: 2 additions & 2 deletions ASR_NL_benchmark/templates/select_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ <h1> Select Hypothesis and Reference files or folders </h1>
<p>_______________________________</p>
<label>Path to hypothesis file or folder</label>
<input type="text" class="form-control" id="hyp" name="hyp" placeholder="Hyp File or folder">
<input type="checkbox" id="skip-hyp-norm">
<input type="checkbox" id="skip-hyp-norm" value="skip-hyp-norm">
<label for="skip-hyp-norm">Skip the normalization step for the hypothesis file(s)</label>
<br>
<p>_______________________________</p>
<label>Path to reference file or folder</label>
<input type="text" class="form-control" id="ref" name="ref" placeholder="Ref File or folder">
<input type="checkbox" id="skip-ref-norm">
<input type="checkbox" id="skip-ref-norm" value="skip-ref-norm">
<label for="skip-ref-norm">Skip the normalization step for the reference file(s)</label>
<br>
<button type="submit" class="btn btn-primary" >Submit</button>
Expand Down

0 comments on commit 0db9095

Please sign in to comment.