Add1E commited on
Commit
d12d016
·
1 Parent(s): 02f2f62

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -47,7 +47,7 @@ def addToCsvAndTrain(trainset, old_df):
47
  df = pd.concat([old_df, neues_df], ignore_index=True)
48
  df.to_csv(f'{localdir}/top50.csv', index=False, encoding='utf-8')
49
  if(random.randint(1, 10) == 7):
50
- st.session_state['code'] = None
51
  repo.git_add(os.path.abspath(f'{localdir}/top50.csv'))
52
  repo.git_commit("Add top50.csv")
53
  repo.git_push()
 
47
  df = pd.concat([old_df, neues_df], ignore_index=True)
48
  df.to_csv(f'{localdir}/top50.csv', index=False, encoding='utf-8')
49
  if(random.randint(1, 10) == 7):
50
+ st.session_state['reset'] = 1
51
  repo.git_add(os.path.abspath(f'{localdir}/top50.csv'))
52
  repo.git_commit("Add top50.csv")
53
  repo.git_push()