From 139ce3bc95f27254724acd60d4aab55222465941 Mon Sep 17 00:00:00 2001 From: imarochkin Date: Thu, 23 May 2024 13:52:09 +0300 Subject: [PATCH] README import fix --- README.md | 3 +++ README_en.md | 3 +++ README_zh.md | 3 +++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index babd341..d19ac24 100644 --- a/README.md +++ b/README.md @@ -499,6 +499,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 ad8336a..0b923a6 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 0eff044..2f5556e 100644 --- a/README_zh.md +++ b/README_zh.md @@ -506,6 +506,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')