Pearx commited on
Commit
609d6b8
1 Parent(s): ee69765

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -111,11 +111,9 @@ 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
- 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']):
@@ -128,6 +126,9 @@ if ("history" + current_chat not in st.session_state) or (st.session_state['if_c
128
  st.session_state['if_chat_change'] = False
129
 
130
 
 
 
 
131
  # 对话展示
132
  show_messages(st.session_state["history" + current_chat])
133
 
 
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
  # 加载数据
119
  if ("history" + current_chat not in st.session_state) or (st.session_state['if_chat_change']):
 
126
  st.session_state['if_chat_change'] = False
127
 
128
 
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