jaimin commited on
Commit
a74cb16
1 Parent(s): fdaeb74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,7 +22,9 @@ def transcribe(stream, new_chunk):
22
  transcription=transcriber({"sampling_rate": sr, "raw": stream})["text"]
23
  # Check for sentence boundaries
24
  sentence_boundary = "." in transcription or "?" in transcription
25
-
 
 
26
  if sentence_boundary:
27
  sentence = sentence_buffer + transcription.split(transcription[-1])[0]
28
  print("Sentence Buffer :",sentence_buffer)
 
22
  transcription=transcriber({"sampling_rate": sr, "raw": stream})["text"]
23
  # Check for sentence boundaries
24
  sentence_boundary = "." in transcription or "?" in transcription
25
+ # Initialize ner_result and intent_result
26
+ ner_result = None
27
+ intent_result = None
28
  if sentence_boundary:
29
  sentence = sentence_buffer + transcription.split(transcription[-1])[0]
30
  print("Sentence Buffer :",sentence_buffer)