Spaces:
Running
Running
import streamlit as st | |
import pandas as pd | |
def display_csv(file_path): | |
# Load the CSV file using pandas | |
df = pd.read_csv(file_path) | |
# Display the dataframe as a table | |
st.write(df, height=5000, width=1000) # Adjust height and width as needed | |
def main(): | |
# Hardcoded file path | |
file_path = "merged-averaged-model_timings_2.1.0_12.1_NVIDIA_A10G_False.csv" | |
# Add a text caption | |
st.header("CSV Viewer") | |
st.write("This app displays the contents of a CSV file.") | |
# Call the display_csv function with the hardcoded file path | |
display_csv(file_path) | |
if __name__ == "__main__": | |
main() | |