enoreyes commited on
Commit
439adcb
1 Parent(s): 22e301a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,7 @@ from transformers import pipeline, Wav2Vec2ProcessorWithLM
13
  from pyannote.audio import Pipeline
14
  import whisperx
15
 
16
- from utils import split_into_sentences, create_fig, color_map, thresholds
17
  from utils import speech_to_text as stt
18
 
19
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
@@ -85,6 +85,7 @@ def sentiment(diarized, emotion_pipeline):
85
  """
86
 
87
  customer_sentiments = []
 
88
 
89
  for i in range(0, len(diarized), 2):
90
  speaker_speech, speaker_id = diarized[i]
 
13
  from pyannote.audio import Pipeline
14
  import whisperx
15
 
16
+ from utils import split, create_fig, color_map, thresholds
17
  from utils import speech_to_text as stt
18
 
19
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
 
85
  """
86
 
87
  customer_sentiments = []
88
+ sentences = split(speaker_speech)
89
 
90
  for i in range(0, len(diarized), 2):
91
  speaker_speech, speaker_id = diarized[i]