georad commited on
Commit
efa48a2
·
verified ·
1 Parent(s): 1b5df3b

Update pages/type_text.py

Browse files
Files changed (1) hide show
  1. pages/type_text.py +2 -2
pages/type_text.py CHANGED
@@ -13,8 +13,8 @@ def get_device_map() -> str:
13
  return 'cuda' if torch.cuda.is_available() else 'cpu'
14
  device = get_device_map() # 'cpu'
15
 
16
- #def on_click():
17
- # st.session_state.user_input = ""
18
 
19
  #@st.cache
20
  def convert_df(df:pd.DataFrame):
 
13
  return 'cuda' if torch.cuda.is_available() else 'cpu'
14
  device = get_device_map() # 'cpu'
15
 
16
+ def on_click():
17
+ st.session_state.user_input = ""
18
 
19
  #@st.cache
20
  def convert_df(df:pd.DataFrame):