hlydecker commited on
Commit
5271f0d
1 Parent(s): 44a05a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 ($USD)']])
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)