Cachoups commited on
Commit
7708f6b
·
verified ·
1 Parent(s): ef0e117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def summarize_text(text):
31
  resp = summarizer(text)
32
  return resp[0]['summary_text']
33
 
34
- def text_to_sentiment(text, all_score=False, label == True):
35
  if label:
36
  return fin_model(text, return_all_scores=all_score)[0]["label"]
37
  else:
 
31
  resp = summarizer(text)
32
  return resp[0]['summary_text']
33
 
34
+ def text_to_sentiment(text, all_score=False, label = True):
35
  if label:
36
  return fin_model(text, return_all_scores=all_score)[0]["label"]
37
  else: