Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|