JustKiddo commited on
Commit
44218c9
·
verified ·
1 Parent(s): d10cb87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ from transformers import TrOCRProcessor, VisionEncoderDecoderModel
4
  from PIL import Image
5
 
6
  #client = InferenceClient("models/microsoft/trocr-base-handwritten")
7
- processor = TrOCRProcessor.from_pretrained('Sharka/CIVQA_LayoutLMv2_EasyOCR')
8
- model = VisionEncoderDecoderModel.from_pretrained('Sharka/CIVQA_LayoutLMv2_EasyOCR')
9
 
10
  def sepia(input_img):
11
  sepia_filter = np.array([
 
4
  from PIL import Image
5
 
6
  #client = InferenceClient("models/microsoft/trocr-base-handwritten")
7
+ processor = AutoProcessor.from_pretrained("Sharka/CIVQA_LayoutLMv2_EasyOCR")
8
+ model = AutoModelForDocumentQuestionAnswering.from_pretrained("Sharka/CIVQA_LayoutLMv2_EasyOCR")
9
 
10
  def sepia(input_img):
11
  sepia_filter = np.array([