srivatsavdamaraju commited on
Commit
0599b23
1 Parent(s): e8ecfd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('minicpm/models', trust_remote_code=True)
8
- tokenizer = AutoTokenizer.from_pretrained('minicpm/models', trust_remote_code=True)
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-V-2', trust_remote_code=True)
8
+ tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-V-2', trust_remote_code=True)
9
 
10
  # Set the model to evaluation mode
11
  model.eval()