Liyonghui commited on
Commit
d84855e
1 Parent(s): 85fe116

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -155,7 +155,7 @@ Spark_url = "ws://spark-api.xf-yun.com/v1.1/chat" # v1.5环境的地址
155
  # Spark_url = "ws://spark-api.xf-yun.com/v2.1/chat" # v2.0环境的地址
156
 
157
 
158
- text = []
159
 
160
 
161
  # length = 0
@@ -198,7 +198,7 @@ if 'past' not in st.session_state:
198
  st.session_state['past'] = []
199
  user_input=st.text_input("请输入您的问题:",key='input')
200
  if user_input:
201
- text.clear()
202
  output=getanswerByXunFei(user_input)
203
  st.session_state['past'].append(user_input)
204
  st.session_state['generated'].append(output)
 
155
  # Spark_url = "ws://spark-api.xf-yun.com/v2.1/chat" # v2.0环境的地址
156
 
157
 
158
+ #text = []
159
 
160
 
161
  # length = 0
 
198
  st.session_state['past'] = []
199
  user_input=st.text_input("请输入您的问题:",key='input')
200
  if user_input:
201
+ #text.clear()
202
  output=getanswerByXunFei(user_input)
203
  st.session_state['past'].append(user_input)
204
  st.session_state['generated'].append(output)