Text Classification
Transformers
Safetensors
English
distilbert
cybersecurity
xss
security
web
payload-detection
web-security
Instructions to use kd7979148/XSS_Payload_Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kd7979148/XSS_Payload_Detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kd7979148/XSS_Payload_Detector")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kd7979148/XSS_Payload_Detector") model = AutoModelForSequenceClassification.from_pretrained("kd7979148/XSS_Payload_Detector") - Notebooks
- Google Colab
- Kaggle
Update test_server.py
Browse files- test_server.py +2 -2
test_server.py
CHANGED
|
@@ -10,7 +10,7 @@ app = Flask(__name__)
|
|
| 10 |
def home():
|
| 11 |
|
| 12 |
#################################################
|
| 13 |
-
#
|
| 14 |
#################################################
|
| 15 |
|
| 16 |
with open("access.log", "a", encoding="utf-8") as f:
|
|
@@ -25,7 +25,7 @@ def home():
|
|
| 25 |
f.flush()
|
| 26 |
|
| 27 |
#################################################
|
| 28 |
-
# q
|
| 29 |
#################################################
|
| 30 |
|
| 31 |
q = request.args.get("q", "")
|
|
|
|
| 10 |
def home():
|
| 11 |
|
| 12 |
#################################################
|
| 13 |
+
# save logs
|
| 14 |
#################################################
|
| 15 |
|
| 16 |
with open("access.log", "a", encoding="utf-8") as f:
|
|
|
|
| 25 |
f.flush()
|
| 26 |
|
| 27 |
#################################################
|
| 28 |
+
# q param
|
| 29 |
#################################################
|
| 30 |
|
| 31 |
q = request.args.get("q", "")
|