diff --git a/README.md b/README.md index 58d2433..4181e41 100644 --- a/README.md +++ b/README.md @@ -500,6 +500,9 @@ Please refer to the following codes to run `MiniCPM-V` and `OmniLMM`. ```python from chat import OmniLMMChat, img2base64 +import torch +import json + torch.manual_seed(0) chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5') diff --git a/README_en.md b/README_en.md index 610a4c7..c35f271 100644 --- a/README_en.md +++ b/README_en.md @@ -471,6 +471,9 @@ Please refer to the following codes to run `MiniCPM-V` and `OmniLMM`. ```python from chat import OmniLMMChat, img2base64 +import torch +import json + torch.manual_seed(0) chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5') diff --git a/README_zh.md b/README_zh.md index c7a3308..43c366a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -507,6 +507,9 @@ pip install -r requirements.txt ```python from chat import OmniLMMChat, img2base64 +import torch +import json + torch.manual_seed(0) chat_model = OmniLMMChat('openbmb/MiniCPM-Llama3-V-2_5')