sitammeur commited on
Commit
6b8d652
Β·
verified Β·
1 Parent(s): cd32385

Update src/florence/model.py

Browse files
Files changed (1) hide show
  1. 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, from_tf=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
  )