Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,18 @@ model_types = {
|
|
71 |
"Caption",
|
72 |
"Equation",
|
73 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
}
|
75 |
select_model = st.selectbox("ιζ©ηι’εζ樑εοΌ", model_types.keys())
|
76 |
st.write("ζ―ζζ£ζ΅η±»εοΌ")
|
@@ -93,4 +105,3 @@ if img_file_buffer:
|
|
93 |
ploted_img = VisLayout.draw_detections(img, boxes, scores, class_names)
|
94 |
|
95 |
st.image(ploted_img, use_column_width=True)
|
96 |
-
|
|
|
71 |
"Caption",
|
72 |
"Equation",
|
73 |
],
|
74 |
+
"doclayout_yolo": [
|
75 |
+
"title",
|
76 |
+
"text",
|
77 |
+
"abandon",
|
78 |
+
"figure",
|
79 |
+
"figure_caption",
|
80 |
+
"table",
|
81 |
+
"table_caption",
|
82 |
+
"table_footnote",
|
83 |
+
"isolate_formula",
|
84 |
+
"formula_caption",
|
85 |
+
],
|
86 |
}
|
87 |
select_model = st.selectbox("ιζ©ηι’εζ樑εοΌ", model_types.keys())
|
88 |
st.write("ζ―ζζ£ζ΅η±»εοΌ")
|
|
|
105 |
ploted_img = VisLayout.draw_detections(img, boxes, scores, class_names)
|
106 |
|
107 |
st.image(ploted_img, use_column_width=True)
|
|