We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e09aa commit 1311692Copy full SHA for 1311692
training/test_train.py
@@ -34,7 +34,12 @@
34
)
35
def model(request):
36
# Load dataset
37
- data = pd.read_csv(request.param["dataset"])
+ data = None
38
+ try:
39
+ data = pd.read_csv(request.param["dataset"])
40
+ except FileNotFoundError:
41
+ # Check if the dataset is in the parent directory
42
+ data = pd.read_csv("../" + request.param["dataset"])
43
44
# Load TF model from SavedModel
45
sqli_model = TFSMLayer(request.param["model_path"], call_endpoint="serving_default")
0 commit comments