Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,13 +27,13 @@ df['Example cost'] = df.apply(lambda row: calculate_example_cost(input_text, out
|
|
27 |
# Display sorted LLM costs
|
28 |
st.write("Sorted LLM Costs:")
|
29 |
sorted_df = df.sort_values(by='Example cost', ascending=False)
|
30 |
-
st.write(sorted_df[['Company', 'Model', 'Example cost
|
31 |
|
32 |
# Plot visualization
|
33 |
-
st.write("Visualization of LLM Costs:")
|
34 |
plt.figure(figsize=(10, 6))
|
35 |
plt.barh(sorted_df['Model'], sorted_df['Example cost'], color='skyblue')
|
36 |
-
plt.xlabel('Example Cost')
|
37 |
plt.ylabel('LLM Model')
|
38 |
-
plt.title('LLM Usage Cost')
|
39 |
st.pyplot(plt)
|
|
|
27 |
# Display sorted LLM costs
|
28 |
st.write("Sorted LLM Costs:")
|
29 |
sorted_df = df.sort_values(by='Example cost', ascending=False)
|
30 |
+
st.write(sorted_df[['Company', 'Model', 'Example cost']])
|
31 |
|
32 |
# Plot visualization
|
33 |
+
st.write("Visualization of LLM Costs ($USD):")
|
34 |
plt.figure(figsize=(10, 6))
|
35 |
plt.barh(sorted_df['Model'], sorted_df['Example cost'], color='skyblue')
|
36 |
+
plt.xlabel('Example Cost ($USD)')
|
37 |
plt.ylabel('LLM Model')
|
38 |
+
plt.title('LLM Usage Cost in US Dollars')
|
39 |
st.pyplot(plt)
|