Skip to content

Commit

Permalink
added token cost
Browse files Browse the repository at this point in the history
  • Loading branch information
aju22 authored Jul 11, 2023
1 parent 79c46f7 commit f138481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@

credit_card_placeholder.caption(f"""
Used {st.session_state.token_count} tokens\n
Cost {(st.session_state.token_count / 1000) * 0.002} $ (approx.)
Cost {round((st.session_state.token_count / 1000) * 0.002, 6)} $ (approx.)
""")

0 comments on commit f138481

Please sign in to comment.