Liyonghui commited on
Commit
13e40de
1 Parent(s): 936a195

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -18,7 +18,6 @@ from wsgiref.handlers import format_date_time
18
  import websocket # 使用websocket_client
19
 
20
  import sys, io
21
- text =[]
22
  answer = ""
23
 
24
 
@@ -199,7 +198,7 @@ if 'past' not in st.session_state:
199
  st.session_state['past'] = []
200
  user_input=st.text_input("请输入您的问题:",key='input')
201
  if user_input:
202
- output.clear
203
  output=getanswerByXunFei(user_input)
204
  st.session_state['past'].append(user_input)
205
  st.session_state['generated'].append(output)
 
18
  import websocket # 使用websocket_client
19
 
20
  import sys, io
 
21
  answer = ""
22
 
23
 
 
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)