Boltz79 commited on
Commit
503e029
·
verified ·
1 Parent(s): 0a29c8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ from transformers import pipeline
4
  # Load Whisper for speech-to-text
5
  whisper = pipeline("automatic-speech-recognition", model="openai/whisper-medium")
6
 
7
- # Load a sentiment analysis model
8
- sentiment_analyzer = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english")
9
 
10
  # Function to process audio and analyze tone
11
  def analyze_call(audio_file):
 
4
  # Load Whisper for speech-to-text
5
  whisper = pipeline("automatic-speech-recognition", model="openai/whisper-medium")
6
 
7
+ # Load a different sentiment analysis model
8
+ sentiment_analyzer = pipeline("sentiment-analysis", model="cardiffnlp/twitter-roberta-base-sentiment")
9
 
10
  # Function to process audio and analyze tone
11
  def analyze_call(audio_file):