ankush-003 commited on
Commit
99c7040
1 Parent(s): e385089

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = AutoModelForSequenceClassification.from_pretrained("ankush-003/nosqli_identifier")
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")