Create test.py
Browse files
test.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# test.py
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
try:
|
| 5 |
+
with open("hiv_model.onnx", "rb") as f:
|
| 6 |
+
print("hiv_model.onnx loaded successfully")
|
| 7 |
+
with open("hiv_scaler.pkl", "rb") as f:
|
| 8 |
+
print("hiv_scaler.pkl loaded successfully")
|
| 9 |
+
except FileNotFoundError as e:
|
| 10 |
+
print(f"Error: {e}")
|
| 11 |
+
except Exception as e:
|
| 12 |
+
print(f"An unexpected error occurred: {e}")
|
| 13 |
+
|
| 14 |
+
print(f"Current working directory: {os.getcwd()}")
|
| 15 |
+
print(f"Files in current directory: {os.listdir()}")
|