Yoon-gu Hwang commited on
Commit
b7d38a9
โ€ข
1 Parent(s): ff93eb0
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -159,7 +159,7 @@ with gr.Blocks() as demo:
159
 
160
  leader_board = sorted(info.items(), key=lambda x: (x[1]['best_score'], -x[1]['best_time']), reverse=True)
161
  lbdf = pd.DataFrame([dict(**a[1], name=a[0]) for a in leader_board])
162
- lbdf.rename(columns={'name': "์ด๋ฆ„", 'best_score': "์ตœ๊ณ ์ ์ˆ˜", 'best_time': "์‹œ๊ฐ„๊ธฐ๋ก", 'comment': "ํ€ด์ฆˆ์œ ํ˜•"})
163
  lbdf.index += 1
164
  md = lbdf[['์ด๋ฆ„', '์ตœ๊ณ ์ ์ˆ˜', '์‹œ๊ฐ„๊ธฐ๋ก', 'ํ€ด์ฆˆ์œ ํ˜•']].to_markdown()
165
  return "", chat_history, MD.format(content=md)
@@ -176,7 +176,7 @@ with gr.Blocks() as demo:
176
  def update_table():
177
  leader_board = sorted(info.items(), key=lambda x: (x[1]['best_score'], -x[1]['best_time']), reverse=True)
178
  lbdf = pd.DataFrame([dict(**a[1], name=a[0]) for a in leader_board])
179
- lbdf.rename(columns={'name': "์ด๋ฆ„", 'best_score': "์ตœ๊ณ ์ ์ˆ˜", 'best_time': "์‹œ๊ฐ„๊ธฐ๋ก", 'comment': "ํ€ด์ฆˆ์œ ํ˜•"})
180
  lbdf.index += 1
181
  md = lbdf[['์ด๋ฆ„', '์ตœ๊ณ ์ ์ˆ˜', '์‹œ๊ฐ„๊ธฐ๋ก', 'ํ€ด์ฆˆ์œ ํ˜•']].to_markdown()
182
  return MD.format(content=md)
 
159
 
160
  leader_board = sorted(info.items(), key=lambda x: (x[1]['best_score'], -x[1]['best_time']), reverse=True)
161
  lbdf = pd.DataFrame([dict(**a[1], name=a[0]) for a in leader_board])
162
+ lbdf.rename(columns={'name': "์ด๋ฆ„", 'best_score': "์ตœ๊ณ ์ ์ˆ˜", 'best_time': "์‹œ๊ฐ„๊ธฐ๋ก", 'comment': "ํ€ด์ฆˆ์œ ํ˜•"}, inplace=True)
163
  lbdf.index += 1
164
  md = lbdf[['์ด๋ฆ„', '์ตœ๊ณ ์ ์ˆ˜', '์‹œ๊ฐ„๊ธฐ๋ก', 'ํ€ด์ฆˆ์œ ํ˜•']].to_markdown()
165
  return "", chat_history, MD.format(content=md)
 
176
  def update_table():
177
  leader_board = sorted(info.items(), key=lambda x: (x[1]['best_score'], -x[1]['best_time']), reverse=True)
178
  lbdf = pd.DataFrame([dict(**a[1], name=a[0]) for a in leader_board])
179
+ lbdf.rename(columns={'name': "์ด๋ฆ„", 'best_score': "์ตœ๊ณ ์ ์ˆ˜", 'best_time': "์‹œ๊ฐ„๊ธฐ๋ก", 'comment': "ํ€ด์ฆˆ์œ ํ˜•"}, inplace=True)
180
  lbdf.index += 1
181
  md = lbdf[['์ด๋ฆ„', '์ตœ๊ณ ์ ์ˆ˜', '์‹œ๊ฐ„๊ธฐ๋ก', 'ํ€ด์ฆˆ์œ ํ˜•']].to_markdown()
182
  return MD.format(content=md)