hlydecker commited on
Commit
b1f36e5
·
verified ·
1 Parent(s): 509495a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ input_text = st.sidebar.text_area("Input text")
22
  output_text = st.sidebar.text_area("Output text")
23
 
24
  # Calculate example cost for each row
25
- df['Example cost'] = df.apply(lambda row: calculate_example_cost(input_text, output_text, row['Input'], row['Output']), axis=1)
26
 
27
  # Display sorted LLM costs
28
  st.write("Sorted LLM Costs:")
 
22
  output_text = st.sidebar.text_area("Output text")
23
 
24
  # Calculate example cost for each row
25
+ df['Example cost'] = df.apply(lambda row: calculate_example_cost(input_text, output_text, row['Input']/1000000, row['Output']/1000000), axis=1)
26
 
27
  # Display sorted LLM costs
28
  st.write("Sorted LLM Costs:")