Spaces:
Build error
Build error
srivatsavdamaraju
commited on
Commit
•
9ea4180
1
Parent(s):
0599b23
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from PIL import Image
|
|
4 |
from transformers import AutoModel, AutoTokenizer
|
5 |
|
6 |
# Load the model and tokenizer from the local path
|
7 |
-
model = AutoModel.from_pretrained('openbmb/MiniCPM-V-
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-V-
|
9 |
|
10 |
# Set the model to evaluation mode
|
11 |
model.eval()
|
|
|
4 |
from transformers import AutoModel, AutoTokenizer
|
5 |
|
6 |
# Load the model and tokenizer from the local path
|
7 |
+
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True)
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True)
|
9 |
|
10 |
# Set the model to evaluation mode
|
11 |
model.eval()
|