Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadded missing import statement
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from transformers import VisionEncoderDecoderModel
|
2 |
from transformers import TrOCRProcessor, AutoTokenizer, ViTImageProcessor
|
3 |
import gradio as gr
|
|
|
4 |
|
5 |
def OCR(image):
|
6 |
# Load the image
|
|
|
1 |
from transformers import VisionEncoderDecoderModel
|
2 |
from transformers import TrOCRProcessor, AutoTokenizer, ViTImageProcessor
|
3 |
import gradio as gr
|
4 |
+
from PIL import Image
|
5 |
|
6 |
def OCR(image):
|
7 |
# Load the image
|