Skip to content

Commit

Permalink
More interface testing
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Nov 17, 2023
1 parent b08506c commit a12f09b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ASR_NL_benchmark/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 2 additions & 4 deletions ASR_NL_benchmark/templates/select_files.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ <h1> Select Hypothese and Reference files or folders </h1>
<input type="text" class="form-control" id="kind" name="kind" placeholder="Name of speech recognizer">
<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">
<p>Skip the normalization step for the hyp file(s)</p>
<input type="checkbox" class="form-control" id="skip-hyp-norm"> Skip the normalization step for the hyp file(s)
<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">
<p>Skip the normalization step for the ref file(s)</p>
<input type="checkbox" class="form-control" id="skip-ref-norm"> Skip the normalization step for the ref file(s)
<button type="submit" class="btn btn-primary" >Submit</button>
</form>
</div>
Expand Down

0 comments on commit a12f09b

Please sign in to comment.