Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,15 +22,12 @@ def analyze_image(img):
|
|
22 |
|
23 |
return dp.viz(show_cells=False)
|
24 |
|
25 |
-
inputs = gr.inputs.Image(type='
|
26 |
-
outputs = gr.outputs.Image(type="
|
27 |
|
28 |
title = "Deepdoctection"
|
29 |
description = ""
|
30 |
|
31 |
-
|
32 |
-
['sample_1.jpg'],
|
33 |
-
['sample_2.png']
|
34 |
-
]
|
35 |
|
36 |
gr.Interface(analyze_image, inputs, outputs, title=title, description=description, examples=examples).launch()
|
|
|
22 |
|
23 |
return dp.viz(show_cells=False)
|
24 |
|
25 |
+
inputs = gr.inputs.Image(type='numpy', invert_colors=True, label="Original Image")
|
26 |
+
outputs = gr.outputs.Image(type="numpy", label="Output Image")
|
27 |
|
28 |
title = "Deepdoctection"
|
29 |
description = ""
|
30 |
|
31 |
+
examples = [['sample_1.jpg'],['sample_2.png']]
|
|
|
|
|
|
|
32 |
|
33 |
gr.Interface(analyze_image, inputs, outputs, title=title, description=description, examples=examples).launch()
|