wiraindrak commited on
Commit
b980ccf
·
1 Parent(s): 17aedb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -54,6 +54,7 @@ def ner(text):
54
  return {"text": text, "entities": output}
55
 
56
  def sentiment_df(text):
 
57
  text_list = sentence_tokenizer.tokenize(text)
58
  result = [sentiment_analysis(text) for text in text_list]
59
  sentence = []
 
54
  return {"text": text, "entities": output}
55
 
56
  def sentiment_df(text):
57
+ df = pd.DataFrame(columns=['Text', 'Label', 'Score'])
58
  text_list = sentence_tokenizer.tokenize(text)
59
  result = [sentiment_analysis(text) for text in text_list]
60
  sentence = []