vsouza commited on
Commit
579a947
·
1 Parent(s): 7dcb88a

remove unused function

Browse files
Files changed (1) hide show
  1. app.py +2 -28
app.py CHANGED
@@ -26,37 +26,11 @@ if "messages" not in st.session_state:
26
 
27
  st.title(":speech_balloon: Assistant API Chat")
28
 
29
- #def get_all_cookies():
30
- # '''
31
- # WARNING: This uses unsupported feature of Streamlit
32
- # Returns the cookies as a dictionary of kv pairs
33
- # '''
34
- # from streamlit.web.server.websocket_headers import _get_websocket_headers
35
- # from urllib.parse import unquote
36
- #
37
- # headers = _get_websocket_headers()
38
- # if headers is None:
39
- # return {}
40
- #
41
- # if 'Cookie' not in headers:
42
- # return {}
43
- #
44
- # cookie_string = headers['Cookie']
45
- # # A sample cookie string: "K1=V1; K2=V2; K3=V3"
46
- # cookie_kv_pairs = cookie_string.split(';')
47
- #
48
- # cookie_dict = {}
49
- # for kv in cookie_kv_pairs:
50
- # k_and_v = kv.split('=')
51
- # k = k_and_v[0].strip()
52
- # v = k_and_v[1].strip()
53
- # cookie_dict[k] = unquote(v) #e.g. Convert name%40company.com to name@company.com
54
- # return cookie_dict
55
-
56
  with st.sidebar:
57
  st.caption(f"**Session ID**: \n {st.session_state.session_id}")
58
  st.header("Configuration")
59
- thread_id = st.sidebar.text_input("Enter your Thread ID:", placeholder="Leave empty to start a new thread")
 
60
  c1, c2 = st.columns(2)
61
 
62
  if c1.button("Start Chat", use_container_width=True):
 
26
 
27
  st.title(":speech_balloon: Assistant API Chat")
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  with st.sidebar:
30
  st.caption(f"**Session ID**: \n {st.session_state.session_id}")
31
  st.header("Configuration")
32
+ thread_id = st.sidebar.text_input("Enter your Thread ID:",
33
+ placeholder="Leave empty to start a new thread")
34
  c1, c2 = st.columns(2)
35
 
36
  if c1.button("Start Chat", use_container_width=True):