Spaces:
Sleeping
Sleeping
Update model_manager.py
Browse files- model_manager.py +1 -1
model_manager.py
CHANGED
|
@@ -58,7 +58,7 @@ class LazyLlamaModel:
|
|
| 58 |
|
| 59 |
def __init__(self):
|
| 60 |
"""Initialize only once"""
|
| 61 |
-
if self._initialized:
|
| 62 |
return
|
| 63 |
|
| 64 |
self.model = None
|
|
|
|
| 58 |
|
| 59 |
def __init__(self):
|
| 60 |
"""Initialize only once"""
|
| 61 |
+
if hasattr(self, '_initialized') and self._initialized:
|
| 62 |
return
|
| 63 |
|
| 64 |
self.model = None
|