Update src/florence/model.py
Browse files- src/florence/model.py +1 -1
src/florence/model.py
CHANGED
@@ -23,7 +23,7 @@ subprocess.run(
|
|
23 |
model_id = "microsoft/Florence-2-large-ft"
|
24 |
try:
|
25 |
model = (
|
26 |
-
AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True
|
27 |
.to("cuda")
|
28 |
.eval()
|
29 |
)
|
|
|
23 |
model_id = "microsoft/Florence-2-large-ft"
|
24 |
try:
|
25 |
model = (
|
26 |
+
AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
|
27 |
.to("cuda")
|
28 |
.eval()
|
29 |
)
|