Spaces:
Runtime error
Runtime error
ankush-003
commited on
Commit
•
a8afce4
1
Parent(s):
b280351
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
|
|
12 |
model = TFAutoModelForSequenceClassification.from_pretrained("ankush-003/nosqli_identifier")
|
13 |
|
14 |
def predict(username, pwd, label, payload_text = None):
|
15 |
-
if(payload_text is None or payload_text
|
16 |
payload["username"] = username
|
17 |
payload["password"] = pwd
|
18 |
payload_text = json.dumps(payload)
|
|
|
12 |
model = TFAutoModelForSequenceClassification.from_pretrained("ankush-003/nosqli_identifier")
|
13 |
|
14 |
def predict(username, pwd, label, payload_text = None):
|
15 |
+
if(payload_text is None or payload_text is ""):
|
16 |
payload["username"] = username
|
17 |
payload["password"] = pwd
|
18 |
payload_text = json.dumps(payload)
|