Leo Liu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def transcribe_audio(audio_path):
|
|
32 |
return pipe(audio_path)["text"]
|
33 |
|
34 |
# Load sentiment analysis model (Custom multilingual sentiment analysis)
|
35 |
-
sentiment_pipe = pipeline("text-classification", model="CustomModel-multilingual-sentiment-analysis", device=device)
|
36 |
|
37 |
# Text splitting function (using jieba for Chinese text)
|
38 |
def split_text(text, max_length=512):
|
|
|
32 |
return pipe(audio_path)["text"]
|
33 |
|
34 |
# Load sentiment analysis model (Custom multilingual sentiment analysis)
|
35 |
+
sentiment_pipe = pipeline("text-classification", model="Leo0129/CustomModel-multilingual-sentiment-analysis", device=device)
|
36 |
|
37 |
# Text splitting function (using jieba for Chinese text)
|
38 |
def split_text(text, max_length=512):
|