soluma commited on
Commit
747b15d
1 Parent(s): b1632e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
  from transformers import LayoutLMv3Processor, LayoutLMv3ForTokenClassification
3
  from PIL import Image
4
-
 
5
  # Load processor and model
6
  processor = LayoutLMv3Processor.from_pretrained("microsoft/layoutlmv3-base")
7
  model = LayoutLMv3ForTokenClassification.from_pretrained("microsoft/layoutlmv3-base", num_labels=5)
 
1
  import gradio as gr
2
  from transformers import LayoutLMv3Processor, LayoutLMv3ForTokenClassification
3
  from PIL import Image
4
+ import os
5
+ os.system("which tesseract")
6
  # Load processor and model
7
  processor = LayoutLMv3Processor.from_pretrained("microsoft/layoutlmv3-base")
8
  model = LayoutLMv3ForTokenClassification.from_pretrained("microsoft/layoutlmv3-base", num_labels=5)