gilramos commited on
Commit
f89154a
1 Parent(s): 25f03e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,8 @@
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
  import torch
 
 
4
 
5
  article_string = "Author: <a href=\"https://huggingface.co/knowhate\">kNOwHATE</a>. Read more about our <a href=\"https://knowhate.eu/pt-pt\">research on the evaluation of Portuguese language models</a>."
6
 
 
1
  import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
  import torch
4
+ from collections import Counter
5
+ from scipy.special import softmax
6
 
7
  article_string = "Author: <a href=\"https://huggingface.co/knowhate\">kNOwHATE</a>. Read more about our <a href=\"https://knowhate.eu/pt-pt\">research on the evaluation of Portuguese language models</a>."
8