Anthos23 commited on
Commit
2cdda8d
1 Parent(s): 1435c47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -16,7 +16,6 @@ def get_sentiment(out):
16
  winning_score = d[winning_lab]
17
 
18
  df = pd.DataFrame.from_dict(d, orient = 'index')
19
- df = df.reset_index().rename(columns={'index': 'sentiment', 0:'score'})
20
  return df #winning_lab, winning_score
21
 
22
  model_name = "mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"
 
16
  winning_score = d[winning_lab]
17
 
18
  df = pd.DataFrame.from_dict(d, orient = 'index')
 
19
  return df #winning_lab, winning_score
20
 
21
  model_name = "mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"