Spaces:
Runtime error
Runtime error
ankush-003
commited on
Commit
•
99c7040
1
Parent(s):
e385089
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
8 |
|
9 |
# tokenizer = AutoTokenizer.from_pretrained("ankush-003/nosqli_identifier")
|
10 |
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
11 |
-
model =
|
12 |
|
13 |
def predict(payload, malitious):
|
14 |
inputs = tokenizer(payload, return_tensors="tf")
|
|
|
8 |
|
9 |
# tokenizer = AutoTokenizer.from_pretrained("ankush-003/nosqli_identifier")
|
10 |
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
11 |
+
model = TFAutoModelForSequenceClassification.from_pretrained("ankush-003/nosqli_identifier")
|
12 |
|
13 |
def predict(payload, malitious):
|
14 |
inputs = tokenizer(payload, return_tensors="tf")
|