Pearx commited on
Commit
339f8af
·
1 Parent(s): 430777b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -124,6 +124,9 @@ 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
  show_messages(st.session_state["history" + current_chat])
129
 
@@ -155,8 +158,6 @@ area_gpt_content = st.empty()
155
  area_error = st.empty()
156
 
157
  st.write("\n")
158
- st.markdown('<a href="https://huggingface.co/spaces/Pearx/ChatGPT-Assistant?duplicate=true">'
159
- '<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>', unsafe_allow_html=True)
160
  st.header('ChatGPT Assistant')
161
  tap_input, tap_context, tap_set = st.tabs(['💬 聊天', '🗒️ 预设', '⚙️ 设置'])
162
 
 
124
  st.session_state[k + current_chat + 'default'] = v
125
  st.session_state['if_chat_change'] = False
126
 
127
+ # 复制标签
128
+ st.markdown('<center><a href="https://huggingface.co/spaces/Pearx/ChatGPT-Assistant?duplicate=true">'
129
+ '<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a><center>', unsafe_allow_html=True)
130
  # 对话展示
131
  show_messages(st.session_state["history" + current_chat])
132
 
 
158
  area_error = st.empty()
159
 
160
  st.write("\n")
 
 
161
  st.header('ChatGPT Assistant')
162
  tap_input, tap_context, tap_set = st.tabs(['💬 聊天', '🗒️ 预设', '⚙️ 设置'])
163