Update app.py
Browse filesincrease table size
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 |
-
|
|
|
|
| 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()
|