Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -111,8 +111,11 @@ with st.sidebar:
|
|
111 |
|
112 |
st.write("\n")
|
113 |
st.write("\n")
|
114 |
-
# 此处href与下文的st.header内容相对应,跳转锚点
|
115 |
-
st.markdown("<a href='#chatgpt-assistant' id='chat-window'>➡️ 直达输入区</a>",unsafe_allow_html=True)
|
|
|
|
|
|
|
116 |
|
117 |
# 加载数据
|
118 |
if ("history" + current_chat not in st.session_state) or (st.session_state['if_chat_change']):
|
@@ -124,11 +127,7 @@ if ("history" + current_chat not in st.session_state) or (st.session_state['if_c
|
|
124 |
st.session_state[k + current_chat + 'default'] = v
|
125 |
st.session_state['if_chat_change'] = False
|
126 |
|
127 |
-
|
128 |
-
st.write("\n")
|
129 |
-
# 复制标签
|
130 |
-
st.markdown('<center><a href="https://huggingface.co/spaces/Pearx/ChatGPT-Assistant?duplicate=true">'
|
131 |
-
'<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a><center>', unsafe_allow_html=True)
|
132 |
# 对话展示
|
133 |
show_messages(st.session_state["history" + current_chat])
|
134 |
|
|
|
111 |
|
112 |
st.write("\n")
|
113 |
st.write("\n")
|
114 |
+
# # 此处href与下文的st.header内容相对应,跳转锚点
|
115 |
+
# st.markdown("<a href='#chatgpt-assistant' id='chat-window'>➡️ 直达输入区</a>",unsafe_allow_html=True)
|
116 |
+
# 复制标签
|
117 |
+
st.markdown('<center><a href="https://huggingface.co/spaces/Pearx/ChatGPT-Assistant?duplicate=true">'
|
118 |
+
'<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a><center>', unsafe_allow_html=True)
|
119 |
|
120 |
# 加载数据
|
121 |
if ("history" + current_chat not in st.session_state) or (st.session_state['if_chat_change']):
|
|
|
127 |
st.session_state[k + current_chat + 'default'] = v
|
128 |
st.session_state['if_chat_change'] = False
|
129 |
|
130 |
+
|
|
|
|
|
|
|
|
|
131 |
# 对话展示
|
132 |
show_messages(st.session_state["history" + current_chat])
|
133 |
|