Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
muryshev
/
generic-chatbot-backend
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
02251e2
generic-chatbot-backend
/
common
/
decorators.py
muryshev
update
0dffae9
20 days ago
raw
Copy download link
history
blame
Safe
215 Bytes
def
singleton
(
cls
):
instances = {}
def
get_instance
(
*args, **kwargs
):
if
cls
not
in
instances:
instances[cls] = cls(*args, **kwargs)
return
instances[cls]
return
get_instance