mohammad2928git commited on
Commit
7fa16d5
·
verified ·
1 Parent(s): 068c63c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ Create user interface for OCR demo
126
  """
127
 
128
  # image = gr.Image(shape=(300, 300))
129
- image = gr.Image()
130
  method = gr.Radio(["PaddleOCR","EasyOCR", "KerasOCR", "tesseract"],value="PaddleOCR")
131
  output = gr.Textbox(label="Output")
132
 
 
126
  """
127
 
128
  # image = gr.Image(shape=(300, 300))
129
+ image = gr.File(label="Upload PDF/Image")
130
  method = gr.Radio(["PaddleOCR","EasyOCR", "KerasOCR", "tesseract"],value="PaddleOCR")
131
  output = gr.Textbox(label="Output")
132