We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1311692 commit f0f4e7dCopy full SHA for f0f4e7d
training/test_train.py
@@ -35,14 +35,18 @@
35
def model(request):
36
# Load dataset
37
data = None
38
+ prefix = ""
39
try:
40
data = pd.read_csv(request.param["dataset"])
41
except FileNotFoundError:
42
# Check if the dataset is in the parent directory
- data = pd.read_csv("../" + request.param["dataset"])
43
+ prefix = "../"
44
+ data = pd.read_csv(prefix + request.param["dataset"])
45
46
# Load TF model from SavedModel
- sqli_model = TFSMLayer(request.param["model_path"], call_endpoint="serving_default")
47
+ sqli_model = TFSMLayer(
48
+ prefix + request.param["model_path"], call_endpoint="serving_default"
49
+ )
50
51
# Tokenize the sample
52
tokenizer = Tokenizer(num_words=MAX_WORDS, filters="")
0 commit comments