kavg commited on
Commit
0ca5f4d
1 Parent(s): 1683728

Update app.py

Browse files

added missing import statement

Files changed (1) hide show
  1. app.py +1 -0
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