Add1E commited on
Commit
d147275
·
verified ·
1 Parent(s): 3f00d76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,3 +39,5 @@ if st.button("Test"):
39
  tokens_pro_sek = round(response["usage"]["completion_tokens"]/time_in_s,2)
40
  st.write(f"Used Completion Tokens: {response['usage']['completion_tokens']}, Used Time: {round(time_in_s,2)}")
41
  st.write(f"Tokens per second: {tokens_pro_sek}")
 
 
 
39
  tokens_pro_sek = round(response["usage"]["completion_tokens"]/time_in_s,2)
40
  st.write(f"Used Completion Tokens: {response['usage']['completion_tokens']}, Used Time: {round(time_in_s,2)}")
41
  st.write(f"Tokens per second: {tokens_pro_sek}")
42
+ with st.expander("See return message"):
43
+ st.write(response.choices[0].message["content"])