Sarath2002 commited on
Commit
f6ec5e1
1 Parent(s): 340cd2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ def OCR_processor(input_image):
11
 
12
  iface = gr.Interface(
13
  fn=OCR_processor,
14
- inputs=gr.inputs.Image(type="upload", label="Upload an Image"),
15
- outputs=gr.outputs.Image(type="numpy", label="Processed Image"),
16
  title="OCR Image Processor",
17
  description="Upload an image, and the app will process it using OCR_processor() function.",
18
  theme="default", # You can use "default", "compact", or "huggingface" themes
 
11
 
12
  iface = gr.Interface(
13
  fn=OCR_processor,
14
+ inputs=gr.inputs.Image(type="pil", label="Upload an Image"),
15
+ outputs=gr.outputs.Image(type="pil", label="Processed Image"),
16
  title="OCR Image Processor",
17
  description="Upload an image, and the app will process it using OCR_processor() function.",
18
  theme="default", # You can use "default", "compact", or "huggingface" themes