Spaces:
Runtime error
Runtime error
hugo scheithauer
commited on
Commit
·
ef29a76
1
Parent(s):
aae0967
new examples
Browse files
app.py
CHANGED
|
@@ -18,11 +18,17 @@ def predict(im, threshold=0.50):
|
|
| 18 |
return output_image
|
| 19 |
|
| 20 |
title = "YOLOv5 - Auction sale catalogues layout analysis"
|
|
|
|
| 21 |
description = "<p style='text-align: center'>YOLOv5 Gradio demo for auction sales catalogues layout analysis. Detecting titles and catalogues entries.</p>"
|
|
|
|
| 22 |
article = "<p style='text-align: center'>YOLOv5 source code : <a href='https://github.com/ultralytics/yolov5'>Source code</a> | <a href='https://pytorch.org/hub/ultralytics_yolov5'>PyTorch Hub</a></p>"
|
|
|
|
| 23 |
examples = [['./img_examples/12148-bpt6k1240127r.pdf_page_20.png', 0.50],
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
demo=gr.Interface(fn=predict,
|
| 28 |
inputs=[gr.Image(type="pil", label="document image"), gr.Slider(maximum=1, step=0.01, value=0.50)],
|
|
|
|
| 18 |
return output_image
|
| 19 |
|
| 20 |
title = "YOLOv5 - Auction sale catalogues layout analysis"
|
| 21 |
+
|
| 22 |
description = "<p style='text-align: center'>YOLOv5 Gradio demo for auction sales catalogues layout analysis. Detecting titles and catalogues entries.</p>"
|
| 23 |
+
|
| 24 |
article = "<p style='text-align: center'>YOLOv5 source code : <a href='https://github.com/ultralytics/yolov5'>Source code</a> | <a href='https://pytorch.org/hub/ultralytics_yolov5'>PyTorch Hub</a></p>"
|
| 25 |
+
|
| 26 |
examples = [['./img_examples/12148-bpt6k1240127r.pdf_page_20.png', 0.50],
|
| 27 |
+
['./img_examples/12148-bpt6k1240127r.pdf_page_21.png', 0.50],
|
| 28 |
+
['./img_examples/12148-bpt6k1240127r.pdf_page_27.png', 0.50],
|
| 29 |
+
['./img_examples/12148-bpt6k1240127r.pdf_page_37.png', 0.50],
|
| 30 |
+
['./img_examples/12148-bpt6k1240127r.pdf_page_83.png', 0.50],
|
| 31 |
+
['./img_examples/12148-bpt6k1240127r_BpE9Wd0.pdf_page_74.png', 0.50]]
|
| 32 |
|
| 33 |
demo=gr.Interface(fn=predict,
|
| 34 |
inputs=[gr.Image(type="pil", label="document image"), gr.Slider(maximum=1, step=0.01, value=0.50)],
|