Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ logging.basicConfig(level=logging.INFO)
|
|
18 |
logger = logging.getLogger(__name__)
|
19 |
|
20 |
# Load model and processor
|
21 |
-
ckpt ="
|
22 |
-
model =
|
23 |
processor = AutoProcessor.from_pretrained(ckpt,trust_remote_code=True)
|
24 |
|
25 |
class DocumentState:
|
|
|
18 |
logger = logging.getLogger(__name__)
|
19 |
|
20 |
# Load model and processor
|
21 |
+
ckpt ="mistral-community/pixtral-12b"
|
22 |
+
model = AutoModelForImageTextToText.from_pretrained(ckpt, torch_dtype=torch.bfloat16,trust_remote_code=True).to("cuda")
|
23 |
processor = AutoProcessor.from_pretrained(ckpt,trust_remote_code=True)
|
24 |
|
25 |
class DocumentState:
|