Afsha001 commited on
Commit
f2e1a00
·
verified ·
1 Parent(s): 3149f37

update florence

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,11 +43,11 @@ def load_local_models():
43
  gc.collect()
44
 
45
  florence_processor = AutoProcessor.from_pretrained(
46
- "microsoft/Florence-2-Base",
47
  trust_remote_code=True
48
  )
49
  florence_model = AutoModelForCausalLM.from_pretrained(
50
- "microsoft/Florence-2-Base",
51
  trust_remote_code=True,
52
  torch_dtype=torch.float32
53
  )
 
43
  gc.collect()
44
 
45
  florence_processor = AutoProcessor.from_pretrained(
46
+ "microsoft/Florence-2-large",
47
  trust_remote_code=True
48
  )
49
  florence_model = AutoModelForCausalLM.from_pretrained(
50
+ "microsoft/Florence-2-large",
51
  trust_remote_code=True,
52
  torch_dtype=torch.float32
53
  )