JaMe76 commited on
Commit
cfa812c
1 Parent(s): 8bf9be9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from deepdoctection import Image
7
  import gradio as gr
8
 
9
 
10
- def analyze_image(img, with_ocr):
11
  # creating an image object and passing to the analyzer by using dataflows
12
  image = Image(file_name="input.png", location="")
13
  image.image = img[:,:,::-1]
@@ -24,7 +24,7 @@ def analyze_image(img, with_ocr):
24
 
25
  return dp.viz(show_table_structure=False), out
26
 
27
- inputs = [gr.inputs.Image(type='numpy', label="Original Image"), gr.Checkbox(label="OCR")]
28
  outputs = [gr.outputs.Image(type="numpy", label="Output Image"), "JSON"]
29
 
30
  title = "Deepdoctection - A Document AI Package"
 
7
  import gradio as gr
8
 
9
 
10
+ def analyze_image(img):
11
  # creating an image object and passing to the analyzer by using dataflows
12
  image = Image(file_name="input.png", location="")
13
  image.image = img[:,:,::-1]
 
24
 
25
  return dp.viz(show_table_structure=False), out
26
 
27
+ inputs = [gr.inputs.Image(type='numpy', label="Original Image")]
28
  outputs = [gr.outputs.Image(type="numpy", label="Output Image"), "JSON"]
29
 
30
  title = "Deepdoctection - A Document AI Package"