Update app.py
Browse files
app.py
CHANGED
|
@@ -27,9 +27,9 @@ def show_preds(input_image):
|
|
| 27 |
layout = model.detect(image_array)
|
| 28 |
return lp.draw_box(image_array, layout, show_element_type=True)
|
| 29 |
|
| 30 |
-
outputs = gr.outputs.Image(type="pil")
|
| 31 |
|
| 32 |
examples = [['example1.png'], ['example2.png']]
|
| 33 |
|
| 34 |
-
gr_interface = gr.Interface(fn=show_preds, inputs="image", outputs=
|
| 35 |
gr_interface.launch(inline=False, debug=True)
|
|
|
|
| 27 |
layout = model.detect(image_array)
|
| 28 |
return lp.draw_box(image_array, layout, show_element_type=True)
|
| 29 |
|
| 30 |
+
#outputs = gr.outputs.Image(type="pil")
|
| 31 |
|
| 32 |
examples = [['example1.png'], ['example2.png']]
|
| 33 |
|
| 34 |
+
gr_interface = gr.Interface(fn=show_preds, inputs="image", outputs="image", title='Document Layout Detector/Parser', article=article, description=description, examples=examples, analytics_enabled = True, enable_queue=True)
|
| 35 |
gr_interface.launch(inline=False, debug=True)
|