Yoon-gu Hwang commited on
Commit
5f8ce22
β€’
1 Parent(s): 2661cef
Files changed (1) hide show
  1. app.py +1 -0
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])