Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,12 +1,44 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NeoGuardianAI - URL Phishing Detection
|
2 |
+
|
3 |
+
This Space provides a web interface for detecting phishing URLs using a machine learning model.
|
4 |
+
|
5 |
+
## Model Performance
|
6 |
+
|
7 |
+
- Accuracy: 96.31%
|
8 |
+
- Precision: 96.00%
|
9 |
+
- Recall: 96.66%
|
10 |
+
- F1 Score: 96.33%
|
11 |
+
|
12 |
+
## How it works
|
13 |
+
|
14 |
+
The model was trained on the [pirocheto/phishing-url](https://huggingface.co/datasets/pirocheto/phishing-url) dataset from Hugging Face.
|
15 |
+
|
16 |
+
It extracts various features from the URL and uses a XGBoost model to classify it as legitimate or phishing.
|
17 |
+
|
18 |
+
## Usage
|
19 |
+
|
20 |
+
Simply enter a URL in the input box and click "Check URL" to see if it's safe or potentially malicious.
|
21 |
+
|
22 |
+
## Model Repository
|
23 |
+
|
24 |
+
The model is available at [https://huggingface.co/Devishetty100/neoguardianai](https://huggingface.co/Devishetty100/neoguardianai)
|
25 |
+
|
26 |
+
## API Usage
|
27 |
+
|
28 |
+
You can also use this model via the Hugging Face Inference API:
|
29 |
+
|
30 |
+
```python
|
31 |
+
import requests
|
32 |
+
|
33 |
+
API_URL = "https://api-inference.huggingface.co/models/Devishetty100/neoguardianai"
|
34 |
+
headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
|
35 |
+
|
36 |
+
def query(url):
|
37 |
+
payload = {"inputs": url}
|
38 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
39 |
+
return response.json()
|
40 |
+
|
41 |
+
# Example
|
42 |
+
result = query("https://example.com")
|
43 |
+
print(result)
|
44 |
+
```
|