Sarath2002 commited on
Commit
a5940a3
1 Parent(s): 94302df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -9,11 +9,13 @@ def OCR_processor(input_image):
9
  #input_image = Image.open(input_image)
10
  return processor(input_image)
11
 
 
12
  iface = gr.Interface(
13
  fn=OCR_processor,
14
- inputs=gr.inputs.Image(type="filepath", 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="huggingface", # You can use "default", "compact", or "huggingface" themes
19
  layout="vertical",
 
9
  #input_image = Image.open(input_image)
10
  return processor(input_image)
11
 
12
+ examples =[['eg1.png'],['eg2.png'],['eg3.png']]
13
  iface = gr.Interface(
14
  fn=OCR_processor,
15
+ inputs=gr.inputs.Image(type="pil", label="Upload an Image"),
16
  outputs=gr.outputs.Image(type="pil", label="Processed Image"),
17
  title="OCR Image Processor",
18
+ examples=examples,
19
  description="Upload an image, and the app will process it using OCR_processor() function.",
20
  theme="huggingface", # You can use "default", "compact", or "huggingface" themes
21
  layout="vertical",