Spaces:
Sleeping
Sleeping
Commit
·
5cd38b6
1
Parent(s):
edd8573
Update functions.py
Browse files- functions.py +1 -0
functions.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
from transformers import AutoTokenizer, AutoConfig, AutoModelForSequenceClassification
|
|
|
2 |
# Define the preprocess function
|
3 |
def preprocess(text):
|
4 |
new_text = []
|
|
|
1 |
from transformers import AutoTokenizer, AutoConfig, AutoModelForSequenceClassification
|
2 |
+
from scipy.special import softmax
|
3 |
# Define the preprocess function
|
4 |
def preprocess(text):
|
5 |
new_text = []
|