Spaces:
Running
Running
Jesse-marqo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,16 @@ 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)
|
9 |
|
10 |
def main():
|
11 |
# Hardcoded file path
|
12 |
file_path = "merged-averaged-model_timings_2.1.0_12.1_NVIDIA_A10G_False.csv"
|
|
|
|
|
|
|
|
|
|
|
13 |
# Call the display_csv function with the hardcoded file path
|
14 |
display_csv(file_path)
|
15 |
|
|
|
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=5000, width=1000) # Adjust height and width as needed
|
9 |
|
10 |
def main():
|
11 |
# Hardcoded file path
|
12 |
file_path = "merged-averaged-model_timings_2.1.0_12.1_NVIDIA_A10G_False.csv"
|
13 |
+
|
14 |
+
# Add a text caption
|
15 |
+
st.header("CSV Viewer")
|
16 |
+
st.write("This app displays the contents of a CSV file.")
|
17 |
+
|
18 |
# Call the display_csv function with the hardcoded file path
|
19 |
display_csv(file_path)
|
20 |
|