Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,10 @@ from PIL import Image
|
|
7 |
from transformers import AutoModel, AutoTokenizer
|
8 |
|
9 |
# Load the model and tokenizer
|
10 |
-
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True
|
11 |
model = model.to(device='cuda')
|
12 |
|
13 |
-
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5', trust_remote_code=True)
|
14 |
model.eval()
|
15 |
|
16 |
@spaces.GPU
|
|
|
7 |
from transformers import AutoModel, AutoTokenizer
|
8 |
|
9 |
# Load the model and tokenizer
|
10 |
+
model = AutoModel.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
|
11 |
model = model.to(device='cuda')
|
12 |
|
13 |
+
tokenizer = AutoTokenizer.from_pretrained('openbmb/MiniCPM-Llama3-V-2_5-int4', trust_remote_code=True)
|
14 |
model.eval()
|
15 |
|
16 |
@spaces.GPU
|