Spaces:
Sleeping
Sleeping
Yoon-gu Hwang
commited on
Commit
·
3b721dc
1
Parent(s):
a7ad64f
history 리셋
Browse files
app.py
CHANGED
@@ -181,8 +181,9 @@ with gr.Blocks() as demo:
|
|
181 |
artifact.add_file("info.json")
|
182 |
artifact.add_file("users.json")
|
183 |
run.log_artifact(artifact)
|
184 |
-
|
185 |
-
|
|
|
186 |
|
187 |
leader_board = sorted(info.items(), key=lambda x: (x[1]['best_score'], -x[1]['best_time']), reverse=True)
|
188 |
lbdf = pd.DataFrame([dict(**a[1], name=a[0]) for a in leader_board])
|
|
|
181 |
artifact.add_file("info.json")
|
182 |
artifact.add_file("users.json")
|
183 |
run.log_artifact(artifact)
|
184 |
+
info[user]['history'] = []
|
185 |
+
else:
|
186 |
+
info[user]['history'].append((message, bot_message))
|
187 |
|
188 |
leader_board = sorted(info.items(), key=lambda x: (x[1]['best_score'], -x[1]['best_time']), reverse=True)
|
189 |
lbdf = pd.DataFrame([dict(**a[1], name=a[0]) for a in leader_board])
|