AeonAIRisk's picture
Upload load_poc.py with huggingface_hub
29e891a verified
Raw
History Blame Contribute Delete
303 Bytes
import pickle, sys, time
from pathlib import Path
pkl = Path(sys.argv[1]); marker = Path(sys.argv[2])
if marker.exists():
marker.unlink()
pickle.load(open(pkl, "rb"))
time.sleep(0.5)
print("FIRED", marker.exists())
if marker.exists():
print(marker.read_text(errors="replace")[:100])