daveokpare commited on
Commit
688ea42
·
1 Parent(s): b687745

Return text and state output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def transcribe(audio, state=""):
14
 
15
  for segment in segments:
16
  print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
17
- if segment.text.lower() != "you":
18
  state += segment.text + " "
19
 
20
  return state, state
 
14
 
15
  for segment in segments:
16
  print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
17
+ if "you" not in segment.text.lower():
18
  state += segment.text + " "
19
 
20
  return state, state