Skip to content

Commit

Permalink
[Fix]: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bensenliu committed Nov 4, 2023
1 parent b5da708 commit 057c4b2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions opencompass/multimodal/models/minigpt_4/minigpt_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def load_package():
current_folder_path = os.path.dirname(current_file_path)

sys.path.append(os.path.join(current_folder_path, 'MiniGPT-4')) # noqa
try:
# the latest version of MiniGPT4
from minigpt4.models.minigpt4 import MiniGPT4
except ImportError:
# the old version of MiniGPT4
rom minigpt4.models.mini_gpt4 import MiniGPT4

try:
# the latest version of MiniGPT4
from minigpt4.models.minigpt4 import MiniGPT4
except ImportError:
# the old version of MiniGPT4
from minigpt4.models.mini_gpt4 import MiniGPT4

sys.path.pop(-1)

Expand Down

0 comments on commit 057c4b2

Please sign in to comment.