scutcyr commited on
Commit
9e28ace
1 Parent(s): 236bf61

Update app.py

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