pcback commited on
Commit
11f39b2
·
1 Parent(s): 0648ca5

Fix app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -228,7 +228,7 @@ def main():
228
  st.title("Table Structure Recognition Demo")
229
  st.write('\n')
230
 
231
- cols = st.beta_columns((1, 1, 1))
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].html(html_code)
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__':