Update repro.py: scan .joblib files alongside .pkl
Browse files
repro.py
CHANGED
|
@@ -17,7 +17,8 @@ if not modelscan.exists():
|
|
| 17 |
f"Run `pip install modelscan==0.8.8` in this venv first."
|
| 18 |
)
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
result = subprocess.run(
|
| 22 |
[str(modelscan), "-p", str(poc), "--reporting-format", "json"],
|
| 23 |
capture_output=True,
|
|
|
|
| 17 |
f"Run `pip install modelscan==0.8.8` in this venv first."
|
| 18 |
)
|
| 19 |
|
| 20 |
+
poc_files = sorted(list(Path(".").glob("*.pkl")) + list(Path(".").glob("*.joblib")))
|
| 21 |
+
for poc in poc_files:
|
| 22 |
result = subprocess.run(
|
| 23 |
[str(modelscan), "-p", str(poc), "--reporting-format", "json"],
|
| 24 |
capture_output=True,
|