Spaces:
Runtime error
Runtime error
Update lookfor
Browse files- minigpt4_library.py +3 -1
minigpt4_library.py
CHANGED
@@ -534,6 +534,7 @@ def load_library() -> MiniGPT4SharedLibrary:
|
|
534 |
else:
|
535 |
file_name = 'libminigpt4.so'
|
536 |
|
|
|
537 |
repo_root_dir: pathlib.Path = pathlib.Path(os.path.abspath(__file__)).parent.parent
|
538 |
|
539 |
paths = [
|
@@ -549,7 +550,8 @@ def load_library() -> MiniGPT4SharedLibrary:
|
|
549 |
# Search relative to this file
|
550 |
str(repo_root_dir / 'bin' / 'Release' / file_name),
|
551 |
# Fallback
|
552 |
-
str(repo_root_dir / file_name)
|
|
|
553 |
]
|
554 |
|
555 |
for path in paths:
|
|
|
534 |
else:
|
535 |
file_name = 'libminigpt4.so'
|
536 |
|
537 |
+
cwd = pathlib.Path(os.getcwd())
|
538 |
repo_root_dir: pathlib.Path = pathlib.Path(os.path.abspath(__file__)).parent.parent
|
539 |
|
540 |
paths = [
|
|
|
550 |
# Search relative to this file
|
551 |
str(repo_root_dir / 'bin' / 'Release' / file_name),
|
552 |
# Fallback
|
553 |
+
str(repo_root_dir / file_name),
|
554 |
+
str(cwd / file_name)
|
555 |
]
|
556 |
|
557 |
for path in paths:
|