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