Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
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['
|
| 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()
|