CarisMu commited on
Commit
c372516
·
verified ·
1 Parent(s): dbbb9f4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -6
main.py CHANGED
@@ -860,18 +860,18 @@ styled_table = (
860
  "word-wrap": "break-word", # Ensure text wraps within cells
861
  }
862
  )
863
- .set_table_styles(
864
- [
865
- {"selector": "table", "props": [("margin-left", "auto"), ("width", "100%")]}, # Make table responsive and centered
866
- ]
867
- )
868
  .hide(axis="index") # Hide the row index
869
  )
870
 
871
  table_html_data = styled_table._repr_html_()
872
  # table_html_data = dataset_sources.to_html(index=False, border=0)
873
  table_div_data = Div(
874
- # NotStr(table_html_data), style="margin-left: auto; width: 80%; align: center;"
875
  NotStr(table_html_data)
876
 
877
  )
 
860
  "word-wrap": "break-word", # Ensure text wraps within cells
861
  }
862
  )
863
+ # .set_table_styles(
864
+ # [
865
+ # {"selector": "table", "props": [("margin-left", "auto"), ("width", "100%")]}, # Make table responsive and centered
866
+ # ]
867
+ # )
868
  .hide(axis="index") # Hide the row index
869
  )
870
 
871
  table_html_data = styled_table._repr_html_()
872
  # table_html_data = dataset_sources.to_html(index=False, border=0)
873
  table_div_data = Div(
874
+ NotStr(table_html_data), style="margin-left: auto; width: 100%; align: center;"
875
  NotStr(table_html_data)
876
 
877
  )