Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -89,7 +89,7 @@ def analyze_detail(text, tokenizer, sentiment_pipeline, max_tokens):
|
|
89 |
if not chunks:
|
90 |
return None
|
91 |
# ここでバッチ処理を実行(チャンク全体を一括推論)
|
92 |
-
results = safe_sentiment_batch(sentiment_pipeline
|
93 |
|
94 |
# 各チャンクの結果を集計
|
95 |
scores = {"POSITIVE": 0, "NEGATIVE": 0, "NEUTRAL": 0}
|
|
|
89 |
if not chunks:
|
90 |
return None
|
91 |
# ここでバッチ処理を実行(チャンク全体を一括推論)
|
92 |
+
results = safe_sentiment_batch(sentiment_pipeline, chunks)
|
93 |
|
94 |
# 各チャンクの結果を集計
|
95 |
scores = {"POSITIVE": 0, "NEGATIVE": 0, "NEUTRAL": 0}
|