Spaces:
Runtime error
Runtime error
Inder-26 commited on
Commit ·
add681a
1
Parent(s): fdafc3c
Restore history and apply final clean deployment
Browse files- .gitignore +3 -0
- Network_data/phisingData.csv +0 -0
- README.md +4 -4
- debug.txt +0 -0
- test.py +1 -1
- test_mongodb.py +0 -13
.gitignore
CHANGED
|
@@ -212,3 +212,6 @@ final_model/
|
|
| 212 |
deploy_stage/
|
| 213 |
mlruns/
|
| 214 |
Network_data/
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
deploy_stage/
|
| 213 |
mlruns/
|
| 214 |
Network_data/
|
| 215 |
+
|
| 216 |
+
mlflow.db
|
| 217 |
+
*.db
|
Network_data/phisingData.csv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
README.md
CHANGED
|
@@ -161,10 +161,10 @@ Trains and tunes multiple models, selecting the best one based on F1-score/Accur
|
|
| 161 |
4. **Set Environment Variables**
|
| 162 |
Create a `.env` file with your credentials:
|
| 163 |
```env
|
| 164 |
-
MONGO_DB_URL=
|
| 165 |
-
MLFLOW_TRACKING_URI=https://dagshub.com/
|
| 166 |
-
MLFLOW_TRACKING_USERNAME=
|
| 167 |
-
MLFLOW_TRACKING_PASSWORD=
|
| 168 |
```
|
| 169 |
|
| 170 |
## 🚀 Usage
|
|
|
|
| 161 |
4. **Set Environment Variables**
|
| 162 |
Create a `.env` file with your credentials:
|
| 163 |
```env
|
| 164 |
+
MONGO_DB_URL=your_mongodb_url_here
|
| 165 |
+
MLFLOW_TRACKING_URI=https://dagshub.com/your_username/project.mlflow
|
| 166 |
+
MLFLOW_TRACKING_USERNAME=your_username
|
| 167 |
+
MLFLOW_TRACKING_PASSWORD=your_password
|
| 168 |
```
|
| 169 |
|
| 170 |
## 🚀 Usage
|
debug.txt
ADDED
|
Binary file (24 Bytes). View file
|
|
|
test.py
CHANGED
|
@@ -47,7 +47,7 @@ def test_single_prediction():
|
|
| 47 |
"Domain_registeration_length": 1,
|
| 48 |
"Favicon": 1,
|
| 49 |
"port": 1,
|
| 50 |
-
"HTTPS_token":
|
| 51 |
"Request_URL": 1,
|
| 52 |
"URL_of_Anchor": 1,
|
| 53 |
"Links_in_tags": 1,
|
|
|
|
| 47 |
"Domain_registeration_length": 1,
|
| 48 |
"Favicon": 1,
|
| 49 |
"port": 1,
|
| 50 |
+
"HTTPS_token": 0,
|
| 51 |
"Request_URL": 1,
|
| 52 |
"URL_of_Anchor": 1,
|
| 53 |
"Links_in_tags": 1,
|
test_mongodb.py
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
from pymongo.mongo_client import MongoClient
|
| 3 |
-
|
| 4 |
-
uri = "mongodb+srv://inder26112004_db_user:<db_password>@cluster0.bauklqw.mongodb.net/?appName=Cluster0"
|
| 5 |
-
# Create a new client and connect to the server
|
| 6 |
-
client = MongoClient(uri)
|
| 7 |
-
|
| 8 |
-
# Send a ping to confirm a successful connection
|
| 9 |
-
try:
|
| 10 |
-
client.admin.command('ping')
|
| 11 |
-
print("Pinged your deployment. You successfully connected to MongoDB!")
|
| 12 |
-
except Exception as e:
|
| 13 |
-
print(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|