AeonAIRisk commited on
Commit
29e891a
·
verified ·
1 Parent(s): 4b39bf7

Upload load_poc.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. load_poc.py +11 -0
load_poc.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import pickle, sys, time
3
+ from pathlib import Path
4
+ pkl = Path(sys.argv[1]); marker = Path(sys.argv[2])
5
+ if marker.exists():
6
+ marker.unlink()
7
+ pickle.load(open(pkl, "rb"))
8
+ time.sleep(0.5)
9
+ print("FIRED", marker.exists())
10
+ if marker.exists():
11
+ print(marker.read_text(errors="replace")[:100])