Merge pull request #137 from wanesoft/main

README import fix
This commit is contained in:
Hongji Zhu
2024-05-23 19:05:28 +08:00
committed by GitHub
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')