Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ config = AutoConfig.from_pretrained(MODEL)
|
|
25 |
|
26 |
# create classifier function
|
27 |
def classify_compliant(text):
|
28 |
-
text = cleaned_complaints(text)
|
29 |
-
|
30 |
encoded_input = tokenizer(text, return_tensors='pt')
|
31 |
output = model(**encoded_input)
|
32 |
scores = output[0][0].detach().numpy()
|
|
|
25 |
|
26 |
# create classifier function
|
27 |
def classify_compliant(text):
|
28 |
+
#text = cleaned_complaints(text)
|
29 |
+
text = preprocess(text)
|
30 |
encoded_input = tokenizer(text, return_tensors='pt')
|
31 |
output = model(**encoded_input)
|
32 |
scores = output[0][0].detach().numpy()
|