Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Mar 7, 2024
1 parent 8b50331 commit 0baa212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions training/train.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Deep Learning Model Training with LSTM

import pandas as pd
import tensorflow as tf
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
from tensorflow.keras.models import Sequential
Expand All @@ -17,7 +18,7 @@
import numpy as np

# Load dataset
data = pd.read_csv("../model/sqli_dataset.csv")
data = pd.read_csv("../dataset/sqli_dataset.csv")

# Define parameters
MAX_WORDS = 10000
Expand Down Expand Up @@ -67,4 +68,4 @@
print("ROC: {:.2f}%".format(tp / (tp + fn) * 100))

# Save model as SavedModel format
save_model(model, "../sqli_model")
save_model(model, "../sqli_model/1")

0 comments on commit 0baa212

Please sign in to comment.