carbonnnnn commited on
Commit
f16f37c
·
1 Parent(s): 144f299

round latency

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,6 +11,9 @@ import assets.text_content as tc
11
  text_leaderboard = pd.read_csv(os.path.join('assets', 'merged_data.csv'))
12
  text_leaderboard = text_leaderboard.sort_values(by=tc.CLEMSCORE, ascending=False)
13
 
 
 
 
14
  open_weight_df = text_leaderboard[text_leaderboard[tc.OPEN_WEIGHT] == True]
15
  if not open_weight_df.empty: # Check if filtered df is non-empty
16
  max_parameter_size = open_weight_df[tc.PARAMS].max()
@@ -51,7 +54,7 @@ licenses.sort()
51
 
52
  max_input_price = max(ip_prices)
53
  max_output_price = max(op_prices)
54
- max_latency = max(latencies)
55
 
56
  min_parameters = 0 if pd.isna(min(parameters)) else min(parameters)
57
  max_parameter = max_parameter_size
 
11
  text_leaderboard = pd.read_csv(os.path.join('assets', 'merged_data.csv'))
12
  text_leaderboard = text_leaderboard.sort_values(by=tc.CLEMSCORE, ascending=False)
13
 
14
+ # When displaying latency values
15
+ text_leaderboard[tc.LATENCY] = text_leaderboard[tc.LATENCY].round(3)
16
+
17
  open_weight_df = text_leaderboard[text_leaderboard[tc.OPEN_WEIGHT] == True]
18
  if not open_weight_df.empty: # Check if filtered df is non-empty
19
  max_parameter_size = open_weight_df[tc.PARAMS].max()
 
54
 
55
  max_input_price = max(ip_prices)
56
  max_output_price = max(op_prices)
57
+ max_latency = text_leaderboard[tc.LATENCY].max().round(3)
58
 
59
  min_parameters = 0 if pd.isna(min(parameters)) else min(parameters)
60
  max_parameter = max_parameter_size