Spaces:
Runtime error
Runtime error
Yoon-gu Hwang
commited on
Commit
β’
5f8ce22
1
Parent(s):
2661cef
bug fix
Browse files
app.py
CHANGED
@@ -213,6 +213,7 @@ with gr.Blocks() as demo:
|
|
213 |
global USERS
|
214 |
if user not in USERS:
|
215 |
USERS += [user]
|
|
|
216 |
new_dropdown = gr.Dropdown(sorted(USERS), value=user, label="μ¬μ©μ", info="λΉμ μ λꡬμ κ°μ?", allow_custom_value=True)
|
217 |
leader_board = sorted(infos.items(), key=lambda x: (x[1].best_score, -x[1].best_time), reverse=True)
|
218 |
lbdf = pd.DataFrame([dict(**a[1].model_dump()) for a in leader_board])
|
|
|
213 |
global USERS
|
214 |
if user not in USERS:
|
215 |
USERS += [user]
|
216 |
+
infos[user] = Info(name=user)
|
217 |
new_dropdown = gr.Dropdown(sorted(USERS), value=user, label="μ¬μ©μ", info="λΉμ μ λꡬμ κ°μ?", allow_custom_value=True)
|
218 |
leader_board = sorted(infos.items(), key=lambda x: (x[1].best_score, -x[1].best_time), reverse=True)
|
219 |
lbdf = pd.DataFrame([dict(**a[1].model_dump()) for a in leader_board])
|