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

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -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)
 
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)