import pickle | |
try: | |
with open(r'C:\Users\marco\financebert\model.safetensors', 'rb') as f: | |
model = pickle.load(f) | |
print("Model loaded successfully using pickle:", model) | |
except Exception as e: | |
print("Failed to load model using pickle:", str(e)) |
import pickle | |
try: | |
with open(r'C:\Users\marco\financebert\model.safetensors', 'rb') as f: | |
model = pickle.load(f) | |
print("Model loaded successfully using pickle:", model) | |
except Exception as e: | |
print("Failed to load model using pickle:", str(e)) |