Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def transcribe_audio(audio_path):
|
|
71 |
return remove_punctuation(remove_repeated_phrases(pipe({"sampling_rate": sample_rate, "raw": waveform})["text"]))
|
72 |
|
73 |
# Sentiment analysis model
|
74 |
-
sentiment_pipe = pipeline("text-classification", model="
|
75 |
|
76 |
# Rate sentiment with batch processing
|
77 |
def rate_quality(text):
|
|
|
71 |
return remove_punctuation(remove_repeated_phrases(pipe({"sampling_rate": sample_rate, "raw": waveform})["text"]))
|
72 |
|
73 |
# Sentiment analysis model
|
74 |
+
sentiment_pipe = pipeline("text-classification", model="MonkeyDLLLLLLuffy/CustomModel-multilingual-sentiment-analysis-enhanced", device=device)
|
75 |
|
76 |
# Rate sentiment with batch processing
|
77 |
def rate_quality(text):
|