Update app.py
Browse files
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"
|