Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
8 |
-
model =
|
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([
|