oliver-aizip kai-aizip commited on
Commit
ae631da
·
verified ·
1 Parent(s): 44c2a20

Added shared interruption flag (#12)

Browse files

- Added shared interruption flag (854fa334f87c6da3385e9b56aed2f2244f63d43f)


Co-authored-by: Kai <[email protected]>

Files changed (1) hide show
  1. utils/shared.py +4 -0
utils/shared.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from threading import Event
2
+
3
+ # Create a shared event that can be imported by multiple modules
4
+ generation_interrupt = Event()