Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from deepdoctection import Image
|
|
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,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")
|
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"
|