Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ def display_csv(file_path):
|
|
| 5 |
# Load the CSV file using pandas
|
| 6 |
df = pd.read_csv(file_path)
|
| 7 |
# Display the dataframe as a table
|
| 8 |
-
st.write(df, height=
|
| 9 |
|
| 10 |
def main():
|
| 11 |
# Hardcoded file path
|
|
@@ -18,5 +18,15 @@ def main():
|
|
| 18 |
# Call the display_csv function with the hardcoded file path
|
| 19 |
display_csv(file_path)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
if __name__ == "__main__":
|
| 22 |
main()
|
|
|
|
| 5 |
# Load the CSV file using pandas
|
| 6 |
df = pd.read_csv(file_path)
|
| 7 |
# Display the dataframe as a table
|
| 8 |
+
st.write(df, height=500, width=1000, unsafe_allow_html=True)
|
| 9 |
|
| 10 |
def main():
|
| 11 |
# Hardcoded file path
|
|
|
|
| 18 |
# Call the display_csv function with the hardcoded file path
|
| 19 |
display_csv(file_path)
|
| 20 |
|
| 21 |
+
# Custom CSS to make the app full screen
|
| 22 |
+
st.markdown("""
|
| 23 |
+
<style>
|
| 24 |
+
.reportview-container {
|
| 25 |
+
width: 100%;
|
| 26 |
+
height: 100%;
|
| 27 |
+
}
|
| 28 |
+
</style>
|
| 29 |
+
""", unsafe_allow_html=True)
|
| 30 |
+
|
| 31 |
if __name__ == "__main__":
|
| 32 |
main()
|