Update llm/llamacpp/lc_model.py
Browse files- llm/llamacpp/lc_model.py +3 -4
llm/llamacpp/lc_model.py
CHANGED
@@ -28,11 +28,10 @@ file_handler.setFormatter(formatted)
|
|
28 |
logger.addHandler(file_handler)
|
29 |
|
30 |
try:
|
31 |
-
|
|
|
32 |
except FileNotFoundError:
|
33 |
-
|
34 |
-
|
35 |
-
print("Current path after : ", os.path.dirname(os.path.realpath(__file__)))
|
36 |
|
37 |
|
38 |
class LC_TinyLlama(LCInterface, ABC):
|
|
|
28 |
logger.addHandler(file_handler)
|
29 |
|
30 |
try:
|
31 |
+
os.chdir('..')
|
32 |
+
print("Current path after : ", os.path.dirname(os.path.realpath(__file__)))
|
33 |
except FileNotFoundError:
|
34 |
+
print("Error: Could not move up. You might be at the root directory.")
|
|
|
|
|
35 |
|
36 |
|
37 |
class LC_TinyLlama(LCInterface, ABC):
|