Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -68,7 +68,7 @@ def split_text_by_token_limit(text, tokenizer, max_tokens):
|
|
68 |
return chunks
|
69 |
|
70 |
|
71 |
-
def safe_sentiment(sentiment_pipeline, text, length):
|
72 |
try:
|
73 |
result = sentiment_pipeline(text)[0]
|
74 |
except Exception as e:
|
|
|
68 |
return chunks
|
69 |
|
70 |
|
71 |
+
def safe_sentiment(sentiment_pipeline, text, length, progress_bar):
|
72 |
try:
|
73 |
result = sentiment_pipeline(text)[0]
|
74 |
except Exception as e:
|