Joshua Sundance Bailey commited on
Commit
266bb24
·
1 Parent(s): f368e6d

move ls-related components up

Browse files
Files changed (1) hide show
  1. langchain-streamlit-demo/app.py +5 -9
langchain-streamlit-demo/app.py CHANGED
@@ -150,15 +150,11 @@ if provider_api_key := st.sidebar.text_input(f"{provider} API key", type="passwo
150
  wait_for_all_tracers()
151
  url = client.read_run(run.id).url
152
  st.session_state.trace_link = url
153
-
154
- if client:
155
- if st.session_state.get("run_id"):
156
- feedback_component(client)
157
- if st.session_state.trace_link:
158
- st.sidebar.markdown(
159
- f'<a href="{st.session_state.trace_link}" target="_blank"><button>Latest Trace: 🛠️</button></a>',
160
- unsafe_allow_html=True,
161
- )
162
 
163
 
164
  else:
 
150
  wait_for_all_tracers()
151
  url = client.read_run(run.id).url
152
  st.session_state.trace_link = url
153
+ feedback_component(client)
154
+ st.sidebar.markdown(
155
+ f'<a href="{st.session_state.trace_link}" target="_blank"><button>Latest Trace: 🛠️</button></a>',
156
+ unsafe_allow_html=True,
157
+ )
 
 
 
 
158
 
159
 
160
  else: