Spaces:
Build error
Build error
Add example image
Browse files- app.py +3 -1
- images/1.jpg +0 -0
app.py
CHANGED
@@ -99,6 +99,7 @@ paper_edge = PaperEdge(enet_path, tnet_path, device, dst_dir)
|
|
99 |
title = 'PaperEdge Demo'
|
100 |
description = 'This is the demo for the paper "Learning From Documents in the Wild to Improve Document Unwarping" (SIGGRAPH 2022). Github repo: https://github.com/cvlab-stonybrook/PaperEdge'
|
101 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
|
|
102 |
|
103 |
gr.Interface(
|
104 |
inference,
|
@@ -108,6 +109,7 @@ gr.Interface(
|
|
108 |
],
|
109 |
title=title,
|
110 |
description=description,
|
|
|
111 |
css=css,
|
112 |
allow_flagging='never',
|
113 |
-
).launch(debug=True, enable_queue=True)
|
|
|
99 |
title = 'PaperEdge Demo'
|
100 |
description = 'This is the demo for the paper "Learning From Documents in the Wild to Improve Document Unwarping" (SIGGRAPH 2022). Github repo: https://github.com/cvlab-stonybrook/PaperEdge'
|
101 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
102 |
+
examples = [['images/1.jpg']]
|
103 |
|
104 |
gr.Interface(
|
105 |
inference,
|
|
|
109 |
],
|
110 |
title=title,
|
111 |
description=description,
|
112 |
+
examples=examples,
|
113 |
css=css,
|
114 |
allow_flagging='never',
|
115 |
+
).launch(debug=True, enable_queue=True)
|
images/1.jpg
ADDED
![]() |