Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
HASHIRUAgentX/hashiruAI
guineapig
/
hashiruAI
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
hashiruAI
/
src
/
manager
/
utils
/
singleton.py
helloparthshah
refactor
2f85c93
29 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
182 Bytes
def
singleton
(
cls
):
instances = {}
def
getinstance
():
if
cls
not
in
instances:
instances[cls] = cls()
return
instances[cls]
return
getinstance