Spaces:
Runtime error
Runtime error
Yoon-gu Hwang
commited on
Commit
โข
b7d38a9
1
Parent(s):
ff93eb0
rename
Browse files
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)
|