Spaces:
Runtime error
Runtime error
rishabh062
commited on
Commit
•
36c26f8
1
Parent(s):
3d55008
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
11 |
model.to(device)
|
12 |
|
13 |
def process_document(image):
|
14 |
-
# prepare encoder inputs
|
15 |
pixel_values = processor(image, return_tensors="pt").pixel_values
|
16 |
|
17 |
# prepare decoder inputs
|
|
|
11 |
model.to(device)
|
12 |
|
13 |
def process_document(image):
|
14 |
+
# prepare encoder inputs.
|
15 |
pixel_values = processor(image, return_tensors="pt").pixel_values
|
16 |
|
17 |
# prepare decoder inputs
|