Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:")
|