wjbmattingly commited on
Commit
e577f0c
1 Parent(s): 0dadbbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -22,6 +22,10 @@ model = AutoModelForCausalLM.from_pretrained(
22
  model_dir,
23
  trust_remote_code=True
24
  )
 
 
 
 
25
 
26
  TITLE = "# [Florence-2- Medieval Manuscript Layout Parsing Demo](https://huggingface.co/medieval-data/florence2-medieval-bbox-zone-detection)"
27
  DESCRIPTION = "The demo for Florence-2 fine-tuned on CATMuS Segmentation Dataset. This app has two models: one for line detection and one for zone detection."
 
22
  model_dir,
23
  trust_remote_code=True
24
  )
25
+ processor = AutoProcessor.from_pretrained(
26
+ model_dir,
27
+ trust_remote_code=True
28
+ )
29
 
30
  TITLE = "# [Florence-2- Medieval Manuscript Layout Parsing Demo](https://huggingface.co/medieval-data/florence2-medieval-bbox-zone-detection)"
31
  DESCRIPTION = "The demo for Florence-2 fine-tuned on CATMuS Segmentation Dataset. This app has two models: one for line detection and one for zone detection."