Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ if __name__ == '__main__':
|
|
55 |
|
56 |
img_suffix = ["png", "jpg", "jpeg"]
|
57 |
|
58 |
-
st.markdown('##### 文档图像方向分类')
|
59 |
|
60 |
img_file_buffer = st.file_uploader("Upload an image", type=img_suffix,
|
61 |
key='orientation',
|
@@ -73,7 +73,7 @@ if __name__ == '__main__':
|
|
73 |
|
74 |
col2.markdown(f'- 方向分类结果:{orientation_res}° \n - 耗费时间:{elapse:.4f}s')
|
75 |
|
76 |
-
st.markdown('##### 文档图像版面分析')
|
77 |
img_file_buffer = st.file_uploader("Upload an image", type=img_suffix,
|
78 |
key='layout',
|
79 |
label_visibility='collapsed')
|
@@ -90,7 +90,7 @@ if __name__ == '__main__':
|
|
90 |
drawed_img = vis_layout(img, layout_res)
|
91 |
layout_col2.image(drawed_img, use_column_width=True)
|
92 |
|
93 |
-
st.markdown('##### 表格还原')
|
94 |
img_file_buffer = st.file_uploader("Upload an image", type=img_suffix,
|
95 |
key='table',
|
96 |
label_visibility='collapsed')
|
|
|
55 |
|
56 |
img_suffix = ["png", "jpg", "jpeg"]
|
57 |
|
58 |
+
st.markdown('##### [文档图像方向分类](https://github.com/RapidAI/RapidStructure/blob/main/docs/README_Orientation.md)')
|
59 |
|
60 |
img_file_buffer = st.file_uploader("Upload an image", type=img_suffix,
|
61 |
key='orientation',
|
|
|
73 |
|
74 |
col2.markdown(f'- 方向分类结果:{orientation_res}° \n - 耗费时间:{elapse:.4f}s')
|
75 |
|
76 |
+
st.markdown('##### [文档图像版面分析](https://github.com/RapidAI/RapidStructure/blob/main/docs/README_Layout.md)')
|
77 |
img_file_buffer = st.file_uploader("Upload an image", type=img_suffix,
|
78 |
key='layout',
|
79 |
label_visibility='collapsed')
|
|
|
90 |
drawed_img = vis_layout(img, layout_res)
|
91 |
layout_col2.image(drawed_img, use_column_width=True)
|
92 |
|
93 |
+
st.markdown('##### [表格还原](https://github.com/RapidAI/RapidStructure/blob/main/docs/README_Table.md)')
|
94 |
img_file_buffer = st.file_uploader("Upload an image", type=img_suffix,
|
95 |
key='table',
|
96 |
label_visibility='collapsed')
|