davidfearne commited on
Commit
168422b
·
verified ·
1 Parent(s): c017767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -150,8 +150,8 @@ user_id = st.text_input("User ID:", key="user_id")
150
  # response = call_chat_api(data)
151
 
152
 
153
- st.markdown(f"##### Time take: {format_elapsed_time(response['elapsed_time'])}")
154
- st.markdown(f"##### Question Count : {response['count']} of {numberOfQuestions}")
155
 
156
 
157
  # # {"count":count, "user_id":user_id,"time_stamp":time_stamp, "elapsed_time":elapsed_time, "content":content}
@@ -203,4 +203,6 @@ if user_query is not None and user_query != "":
203
  temperature2=temp2)
204
  # response = call_chat_api(data)
205
  response = st.write_stream(call_chat_api(data))
 
 
206
  st.session_state.chat_history.append(AIMessage(content=response))
 
150
  # response = call_chat_api(data)
151
 
152
 
153
+ # st.markdown(f"##### Time take: {format_elapsed_time(response['elapsed_time'])}")
154
+ # st.markdown(f"##### Question Count : {response['count']} of {numberOfQuestions}")
155
 
156
 
157
  # # {"count":count, "user_id":user_id,"time_stamp":time_stamp, "elapsed_time":elapsed_time, "content":content}
 
203
  temperature2=temp2)
204
  # response = call_chat_api(data)
205
  response = st.write_stream(call_chat_api(data))
206
+ st.markdown(f"##### Time take: {format_elapsed_time(response['elapsed_time'])}")
207
+ st.markdown(f"##### Question Count : {response['count']} of {numberOfQuestions}")
208
  st.session_state.chat_history.append(AIMessage(content=response))