File size: 818 Bytes
16432d6
98b6ea5
 
 
 
 
16432d6
203c968
98b6ea5
16432d6
 
 
81a7abb
 
 
 
 
16432d6
 
98b6ea5
203c968
 
 
 
 
 
 
 
 
 
16432d6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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=500, width=1000, unsafe_allow_html=True)

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)

    # Custom CSS to make the app full screen
    st.markdown("""
    <style>
    .reportview-container {
        width: 100%;
        height: 100%;
    }
    </style>
    """, unsafe_allow_html=True)

if __name__ == "__main__":
    main()