Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from wsgiref.handlers import format_date_time
|
|
18 |
import websocket # 使用websocket_client
|
19 |
|
20 |
import sys, io
|
21 |
-
|
22 |
answer = ""
|
23 |
|
24 |
|
@@ -191,6 +191,7 @@ def getanswerByXunFei(t):
|
|
191 |
getText("assistant", ans)
|
192 |
return answer
|
193 |
|
|
|
194 |
st.markdown("我是讯飞聊天机器人,我可以回答您的任何问题")
|
195 |
if 'generated' not in st.session_state:
|
196 |
st.session_state['generated'] = []
|
|
|
18 |
import websocket # 使用websocket_client
|
19 |
|
20 |
import sys, io
|
21 |
+
text =[]
|
22 |
answer = ""
|
23 |
|
24 |
|
|
|
191 |
getText("assistant", ans)
|
192 |
return answer
|
193 |
|
194 |
+
text.clear
|
195 |
st.markdown("我是讯飞聊天机器人,我可以回答您的任何问题")
|
196 |
if 'generated' not in st.session_state:
|
197 |
st.session_state['generated'] = []
|