basilboy commited on
Commit
cdc1ea7
·
verified ·
1 Parent(s): 7c87bff

Update app.py

Browse files

increase table size

Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -4,6 +4,7 @@ from model import models
4
  import pandas as pd
5
 
6
  def main():
 
7
  st.title("AA Property Inference Demo", anchor=None)
8
 
9
  # Apply monospace font to the entire app
@@ -12,6 +13,9 @@ def main():
12
  .reportview-container {
13
  font-family: 'Courier New', monospace;
14
  }
 
 
 
15
  </style>
16
  """, unsafe_allow_html=True)
17
 
@@ -40,7 +44,8 @@ def main():
40
  if results:
41
  st.write("### Results")
42
  results_df = pd.DataFrame(results)
43
- st.dataframe(results_df.style.format(precision=3))
 
44
 
45
  if __name__ == "__main__":
46
  main()
 
4
  import pandas as pd
5
 
6
  def main():
7
+ st.set_page_config(layout="wide") # Set page to wide layout
8
  st.title("AA Property Inference Demo", anchor=None)
9
 
10
  # Apply monospace font to the entire app
 
13
  .reportview-container {
14
  font-family: 'Courier New', monospace;
15
  }
16
+ .css-1d391kg {
17
+ padding: 0.25rem 1rem; # Adjust padding if necessary for better spacing
18
+ }
19
  </style>
20
  """, unsafe_allow_html=True)
21
 
 
44
  if results:
45
  st.write("### Results")
46
  results_df = pd.DataFrame(results)
47
+ # Use full width for DataFrame display
48
+ st.dataframe(results_df.style.format(precision=3), width=None, height=None) # Set width and height to None to use full available space
49
 
50
  if __name__ == "__main__":
51
  main()