pull/307/head
Kye 1 year ago committed by Zack
parent 0fcd63d1fc
commit 633c5a1d71

@ -61,9 +61,7 @@ class Nougat:
def __call__(self, img: str):
"""Call the model with an image_path str as an input"""
image = Image.open(img)
pixel_values = self.processor(
image, return_tensors="pt"
).pixel_values
pixel_values = self.processor(image, return_tensors="pt").pixel_values
# Generate transcriptions, here we only generate 30 tokens
outputs = self.model.generate(

Loading…
Cancel
Save