Willder commited on
Commit
cce3acd
β€’
1 Parent(s): 391b38e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -91,8 +91,8 @@ def init_sidebar():
91
  chat_config_expander.caption('Looking for help at https://platform.openai.com/docs/api-reference/chat')
92
 
93
  new_chat_button = chat_name_container.button(
94
- label="βž• New Chat", use_container_width=True
95
- )
96
  if new_chat_button:
97
  new_chat_name = f"Chat{len(st.session_state['chats'])}"
98
  st.session_state["current_chat"] = new_chat_name
@@ -107,7 +107,7 @@ def init_sidebar():
107
  key=chat_name,
108
  args=(chat_name,),
109
  type='primary',
110
- use_container_width=True,
111
  )
112
  else:
113
  chat_name_container.button(
@@ -115,7 +115,7 @@ def init_sidebar():
115
  on_click=switch_chat2,
116
  key=chat_name,
117
  args=(chat_name,),
118
- use_container_width=True,
119
  )
120
 
121
  if new_chat_button:
 
91
  chat_config_expander.caption('Looking for help at https://platform.openai.com/docs/api-reference/chat')
92
 
93
  new_chat_button = chat_name_container.button(
94
+ label="βž• New Chat"
95
+ ) # , use_container_width=True
96
  if new_chat_button:
97
  new_chat_name = f"Chat{len(st.session_state['chats'])}"
98
  st.session_state["current_chat"] = new_chat_name
 
107
  key=chat_name,
108
  args=(chat_name,),
109
  type='primary',
110
+ # use_container_width=True,
111
  )
112
  else:
113
  chat_name_container.button(
 
115
  on_click=switch_chat2,
116
  key=chat_name,
117
  args=(chat_name,),
118
+ # use_container_width=True,
119
  )
120
 
121
  if new_chat_button: