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