Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ logger = logging.getLogger(__name__)
|
|
19 |
|
20 |
# Load model and processor
|
21 |
ckpt ="Daemontatox/DocumentCogito"
|
22 |
-
model =
|
23 |
processor = AutoProcessor.from_pretrained(ckpt,trust_remote_code=True)
|
24 |
|
25 |
class DocumentState:
|
|
|
19 |
|
20 |
# Load model and processor
|
21 |
ckpt ="Daemontatox/DocumentCogito"
|
22 |
+
model = MllamaForConditionalGeneration.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:
|