Spaces:
Build error
Build error
Update app.py
Browse files
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"
|
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:
|