Léo Bourrel commited on
Commit
da7a60c
·
1 Parent(s): 3402e27

feat: display additional data only in dev environment

Browse files
Files changed (1) hide show
  1. sorbobotapp/app.py +8 -7
sorbobotapp/app.py CHANGED
@@ -121,13 +121,14 @@ with chat_column:
121
 
122
  st.button(":new: Start a new conversation", on_click=clear_history, type="secondary")
123
 
124
- information_placeholder.caption(
125
- f"""
126
- Used {st.session_state.token_count} tokens \n
127
- Debug Langchain conversation:
128
- {st.session_state.history}
129
- """
130
- )
 
131
 
132
  components.html(
133
  """
 
121
 
122
  st.button(":new: Start a new conversation", on_click=clear_history, type="secondary")
123
 
124
+ if os.environ.get("ENVIRONMENT") == "dev":
125
+ information_placeholder.caption(
126
+ f"""
127
+ Used {st.session_state.token_count} tokens \n
128
+ Debug Langchain conversation:
129
+ {st.session_state.history}
130
+ """
131
+ )
132
 
133
  components.html(
134
  """