README import fix

This commit is contained in:
imarochkin
2024-05-23 13:52:09 +03:00
parent e205e7f959
commit 139ce3bc95
3 changed files with 9 additions and 0 deletions

View File

@@ -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')

View File

@@ -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')

View File

@@ -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')