Hamed Mohammadpour commited on
Commit
f20dd5f
·
1 Parent(s): 6e82048
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -173,12 +173,11 @@ if st.button("Run Benchmark"):
173
 
174
  # Extract billed input and output tokens from meta
175
  group["billed_input_tokens"] = group["meta"].apply(
176
- lambda x: eval(x).get("billed_units", {}).get("input_tokens", "N/A")
177
  )
178
  group["billed_output_tokens"] = group["meta"].apply(
179
- lambda x: eval(x).get("billed_units", {}).get("output_tokens", "N/A")
180
  )
181
-
182
  # Display the runs for each query in a table
183
  st.write(
184
  group[
 
173
 
174
  # Extract billed input and output tokens from meta
175
  group["billed_input_tokens"] = group["meta"].apply(
176
+ lambda x: x.get("billed_units", {}).get("input_tokens", "N/A")
177
  )
178
  group["billed_output_tokens"] = group["meta"].apply(
179
+ lambda x: x.get("billed_units", {}).get("output_tokens", "N/A")
180
  )
 
181
  # Display the runs for each query in a table
182
  st.write(
183
  group[