Mr-Vicky-01
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -17,8 +17,12 @@ tokenizer = AutoTokenizer.from_pretrained("Mr-Vicky-01/TP-FP")
|
|
17 |
|
18 |
start = time.time()
|
19 |
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
inputs = tokenizer(question, return_tensors="pt").to(device)
|
23 |
with torch.no_grad():
|
24 |
logits = model(**inputs).logits
|
|
|
17 |
|
18 |
start = time.time()
|
19 |
|
20 |
+
vuln = 'String password = "password123";'
|
21 |
+
vuln_desc = " Hardcoded credentials were found. This could allow an attacker to access sensitive resources. Replace hardcoded passwords with environment variables or a secure vault."
|
22 |
+
scanner = "docker"
|
23 |
+
|
24 |
+
question = f"""Vulnerability: {vuln} , Vulnerability_Description {vuln_desc} , Scanner: {scanner}"""
|
25 |
+
question = re.sub(r"[,?.'\"']", '', question)
|
26 |
inputs = tokenizer(question, return_tensors="pt").to(device)
|
27 |
with torch.no_grad():
|
28 |
logits = model(**inputs).logits
|