nimool commited on
Commit
a1f1c89
·
1 Parent(s): 8f39447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,10 +39,10 @@ def parse(wav_file):
39
  logits = model(**input_values).logits
40
  sentence = parse_transcription(logits)
41
  check_spell = spell_checker.check(sentence)
42
- if check_spell[0] is False:
43
- sentence = sentence
44
- elif check_spell[0] is True:
45
- sentence = check_spell[1]
46
  return sentence
47
 
48
 
 
39
  logits = model(**input_values).logits
40
  sentence = parse_transcription(logits)
41
  check_spell = spell_checker.check(sentence)
42
+ if check_spell[0] == False:
43
+ sentence = check_spell[1]
44
+ elif check_spell[0] == True:
45
+ sentence = sentence
46
  return sentence
47
 
48