Spaces:
Running
Running
BenchmarkBot
commited on
Commit
β’
5c9f565
1
Parent(s):
43b85eb
weird behavior
Browse files
app.py
CHANGED
@@ -127,7 +127,10 @@ def get_benchmark_table(bench_df):
|
|
127 |
|
128 |
def get_benchmark_chart(bench_df):
|
129 |
copy_df = bench_df.copy()
|
130 |
-
# filter latency bigger than
|
|
|
|
|
|
|
131 |
copy_df = copy_df[copy_df["generate.latency(s)"] <= 100]
|
132 |
# rename model_type
|
133 |
copy_df["model_type"] = copy_df["model_type"].apply(process_model_type)
|
|
|
127 |
|
128 |
def get_benchmark_chart(bench_df):
|
129 |
copy_df = bench_df.copy()
|
130 |
+
# filter latency bigger than 100s
|
131 |
+
copy_df["generate.latency(s)"] = copy_df["generate.latency(s)"].apply(
|
132 |
+
lambda x: x if isinstance(x, (int, float)) else 1000
|
133 |
+
)
|
134 |
copy_df = copy_df[copy_df["generate.latency(s)"] <= 100]
|
135 |
# rename model_type
|
136 |
copy_df["model_type"] = copy_df["model_type"].apply(process_model_type)
|