Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,28 +5,18 @@ 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=500, width=1000
|
| 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("
|
| 16 |
-
st.write("
|
| 17 |
|
| 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()
|
|
|
|
| 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) # 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("CLIP benchmarks - retrieval and inference")
|
| 16 |
+
st.write("CLIP benchmarks for inference and retrieval performance. Image size, context length and output dimensions are also presented. A10G, CUDA 12.1, Torch 2.1.0")
|
| 17 |
|
| 18 |
# Call the display_csv function with the hardcoded file path
|
| 19 |
display_csv(file_path)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
if __name__ == "__main__":
|
| 22 |
main()
|