Spaces:
Build error
Build error
Update app.py
Browse files
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,
|
17 |
from utils import speech_to_text as stt
|
18 |
|
19 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
@@ -34,11 +34,6 @@ emotion_pipeline = pipeline(
|
|
34 |
model="bhadresh-savani/distilbert-base-uncased-emotion",
|
35 |
device=device,
|
36 |
)
|
37 |
-
summarization_pipeline = pipeline(
|
38 |
-
"summarization",
|
39 |
-
model="knkarthick/MEETING_SUMMARY",
|
40 |
-
device=device
|
41 |
-
)
|
42 |
|
43 |
EXAMPLES = [["Customer_Support_Call.wav"]]
|
44 |
|
|
|
13 |
from pyannote.audio import Pipeline
|
14 |
import whisperx
|
15 |
|
16 |
+
from utils import split_into_sentences, sentiment, color_map
|
17 |
from utils import speech_to_text as stt
|
18 |
|
19 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
|
|
34 |
model="bhadresh-savani/distilbert-base-uncased-emotion",
|
35 |
device=device,
|
36 |
)
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
EXAMPLES = [["Customer_Support_Call.wav"]]
|
39 |
|