Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def summarize_text(text):
|
|
32 |
return resp[0]['summary_text']
|
33 |
|
34 |
def text_to_sentiment(text, all_score=False):
|
35 |
-
sentiment = fin_model(text, return_all_scores=all_score)
|
36 |
return sentiment
|
37 |
|
38 |
def fin_ext(text):
|
|
|
32 |
return resp[0]['summary_text']
|
33 |
|
34 |
def text_to_sentiment(text, all_score=False):
|
35 |
+
sentiment = fin_model(text, return_all_scores=all_score)[0]["label"]
|
36 |
return sentiment
|
37 |
|
38 |
def fin_ext(text):
|