Spaces:
Sleeping
Sleeping
Commit
·
e2df6f1
1
Parent(s):
f58375e
Update app.py
Browse files
app.py
CHANGED
@@ -51,12 +51,6 @@ cls_explainer = SequenceClassificationExplainer(
|
|
51 |
|
52 |
def process_final_text(text):
|
53 |
X_test = str(text).lower()
|
54 |
-
#l = []
|
55 |
-
#l.append(X_test)
|
56 |
-
#test_sequences = tok.texts_to_sequences(l)
|
57 |
-
#test_sequences_matrix = sequence.pad_sequences(test_sequences,maxlen=max_len)
|
58 |
-
#lstm_prob = lmodel.predict(test_sequences_matrix.tolist()).flatten()
|
59 |
-
#lstm_pred = np.where(lstm_prob>=0.5,1,0)
|
60 |
|
61 |
encoded_input = tokenizer(X_test, return_tensors='pt')
|
62 |
output = model(**encoded_input)
|
|
|
51 |
|
52 |
def process_final_text(text):
|
53 |
X_test = str(text).lower()
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
encoded_input = tokenizer(X_test, return_tensors='pt')
|
56 |
output = model(**encoded_input)
|