Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,20 +7,20 @@ def display_csv(file_path, columns_to_display):
|
|
7 |
# Select only the specified columns
|
8 |
df_selected_columns = df[columns_to_display]
|
9 |
# Display the selected columns as a table
|
10 |
-
st.
|
11 |
|
12 |
def main():
|
13 |
# Hardcoded file path
|
14 |
file_path = "merged-averaged-model_timings_2.1.0_12.1_NVIDIA_A10G_False.csv"
|
15 |
# Columns to display
|
16 |
columns_to_display = [
|
17 |
-
"model_name", "pretrained", "
|
18 |
-
|
19 |
-
"output shape",
|
20 |
"params (M)", "FLOPs (B)"
|
21 |
] # Specify the columns you want to display
|
22 |
|
23 |
-
# Add
|
24 |
st.header("CLIP benchmarks - retrieval and inference")
|
25 |
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")
|
26 |
|
|
|
7 |
# Select only the specified columns
|
8 |
df_selected_columns = df[columns_to_display]
|
9 |
# Display the selected columns as a table
|
10 |
+
st.table(df_selected_columns.sort_values(by=columns_to_display[0]), height=500, width=1000)
|
11 |
|
12 |
def main():
|
13 |
# Hardcoded file path
|
14 |
file_path = "merged-averaged-model_timings_2.1.0_12.1_NVIDIA_A10G_False.csv"
|
15 |
# Columns to display
|
16 |
columns_to_display = [
|
17 |
+
"model_name", "pretrained", "image_time", "text_time",
|
18 |
+
"avg_score", "image_shape", "text_shape", "model_memory",
|
19 |
+
"output shape", "torch_version", "cuda_version", "device_name",
|
20 |
"params (M)", "FLOPs (B)"
|
21 |
] # Specify the columns you want to display
|
22 |
|
23 |
+
# Add header and description
|
24 |
st.header("CLIP benchmarks - retrieval and inference")
|
25 |
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")
|
26 |
|