Spaces:
Build error
Build error
Update app.py
Browse files
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="
|
| 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):
|