Spaces:
Build error
Build error
Fix app.py
Browse files
app.py
CHANGED
@@ -228,10 +228,9 @@ def main():
|
|
228 |
st.title("Table Structure Recognition Demo")
|
229 |
st.write('\n')
|
230 |
|
231 |
-
cols = st.columns((1, 1
|
232 |
cols[0].subheader("Input page")
|
233 |
cols[1].subheader("Structure output")
|
234 |
-
cols[2].subheader("HTML output")
|
235 |
|
236 |
st.sidebar.title("Image upload")
|
237 |
st.set_option('deprecation.showfileUploaderEncoding', False)
|
@@ -256,7 +255,8 @@ def main():
|
|
256 |
cells = extract_text_from_cells(filename, cells)
|
257 |
html_code = cells_to_html(cells)
|
258 |
|
259 |
-
|
|
|
260 |
|
261 |
|
262 |
if __name__ == '__main__':
|
|
|
228 |
st.title("Table Structure Recognition Demo")
|
229 |
st.write('\n')
|
230 |
|
231 |
+
cols = st.columns((1, 1))
|
232 |
cols[0].subheader("Input page")
|
233 |
cols[1].subheader("Structure output")
|
|
|
234 |
|
235 |
st.sidebar.title("Image upload")
|
236 |
st.set_option('deprecation.showfileUploaderEncoding', False)
|
|
|
255 |
cells = extract_text_from_cells(filename, cells)
|
256 |
html_code = cells_to_html(cells)
|
257 |
|
258 |
+
st.markdown("\nHTML output:")
|
259 |
+
st.markdown(html_code, unsafe_allow_html=True)
|
260 |
|
261 |
|
262 |
if __name__ == '__main__':
|