Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -99,12 +99,13 @@ if st.session_state['generated']:
|
|
99 |
message(st.session_state['past'][i], is_user=True, key=str(i) + '_user')
|
100 |
message(st.session_state["generated"][i], key=str(i))
|
101 |
|
102 |
-
|
103 |
if st.button("清理模型缓存"):
|
104 |
# Clear values from *all* all in-memory and on-disk data caches:
|
105 |
# i.e. clear values from both square and cube
|
106 |
st.cache_resource.clear()
|
107 |
torch.cuda.empty_cache()
|
|
|
108 |
|
109 |
if st.button("清理对话缓存"):
|
110 |
# Clear values from *all* all in-memory and on-disk data caches:
|
|
|
99 |
message(st.session_state['past'][i], is_user=True, key=str(i) + '_user')
|
100 |
message(st.session_state["generated"][i], key=str(i))
|
101 |
|
102 |
+
'''
|
103 |
if st.button("清理模型缓存"):
|
104 |
# Clear values from *all* all in-memory and on-disk data caches:
|
105 |
# i.e. clear values from both square and cube
|
106 |
st.cache_resource.clear()
|
107 |
torch.cuda.empty_cache()
|
108 |
+
'''
|
109 |
|
110 |
if st.button("清理对话缓存"):
|
111 |
# Clear values from *all* all in-memory and on-disk data caches:
|