Spaces:
Sleeping
Sleeping
Commit
·
0beb569
1
Parent(s):
2df21ee
fix: add cls to new function in singleton
Browse files
core-model-prediction/main_model.py
CHANGED
|
@@ -37,7 +37,7 @@ class PredictMainModel:
|
|
| 37 |
|
| 38 |
def __new__(cls):
|
| 39 |
if cls._instance is None:
|
| 40 |
-
cls._instance = super(PredictMainModel, cls).__new__()
|
| 41 |
cls._instance.initialize()
|
| 42 |
return cls._instance
|
| 43 |
|
|
|
|
| 37 |
|
| 38 |
def __new__(cls):
|
| 39 |
if cls._instance is None:
|
| 40 |
+
cls._instance = super(PredictMainModel, cls).__new__(cls)
|
| 41 |
cls._instance.initialize()
|
| 42 |
return cls._instance
|
| 43 |
|