JustKiddo commited on
Commit
c0e6571
·
verified ·
1 Parent(s): ef49bab

Update app.py

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