Update app.py
Browse files
app.py
CHANGED
|
@@ -1073,6 +1073,7 @@ def get_datasets_data(progress=gr.Progress()):
|
|
| 1073 |
|
| 1074 |
|
| 1075 |
|
|
|
|
| 1076 |
target_datasets = {
|
| 1077 |
"aiqtech/kolaw": "https://huggingface.co/datasets/aiqtech/kolaw",
|
| 1078 |
"heegyu/korquad-v1-v2": "https://huggingface.co/datasets/heegyu/korquad-v1-v2",
|
|
@@ -1088,6 +1089,7 @@ target_datasets = {
|
|
| 1088 |
"upstage/open-ko-llm-leaderboard": "https://huggingface.co/datasets/upstage/open-ko-llm-leaderboard"
|
| 1089 |
}
|
| 1090 |
|
|
|
|
| 1091 |
def get_datasets_data(progress=gr.Progress()):
|
| 1092 |
"""데이터셋 데이터 가져오기"""
|
| 1093 |
def calculate_rank(dataset_id, all_global_datasets, korea_datasets):
|
|
@@ -1296,7 +1298,7 @@ def get_datasets_data(progress=gr.Progress()):
|
|
| 1296 |
return error_fig, error_html, empty_df
|
| 1297 |
|
| 1298 |
|
| 1299 |
-
# Gradio UI
|
| 1300 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 1301 |
gr.Markdown("""
|
| 1302 |
# 🤗 허깅페이스 '한국(언어) 리더보드'
|
|
@@ -1345,9 +1347,3 @@ demo.launch(
|
|
| 1345 |
server_port=7860,
|
| 1346 |
share=False
|
| 1347 |
)
|
| 1348 |
-
|
| 1349 |
-
|
| 1350 |
-
|
| 1351 |
-
|
| 1352 |
-
|
| 1353 |
-
|
|
|
|
| 1073 |
|
| 1074 |
|
| 1075 |
|
| 1076 |
+
# 먼저 target_datasets 정의를 코드 상단으로 이동
|
| 1077 |
target_datasets = {
|
| 1078 |
"aiqtech/kolaw": "https://huggingface.co/datasets/aiqtech/kolaw",
|
| 1079 |
"heegyu/korquad-v1-v2": "https://huggingface.co/datasets/heegyu/korquad-v1-v2",
|
|
|
|
| 1089 |
"upstage/open-ko-llm-leaderboard": "https://huggingface.co/datasets/upstage/open-ko-llm-leaderboard"
|
| 1090 |
}
|
| 1091 |
|
| 1092 |
+
|
| 1093 |
def get_datasets_data(progress=gr.Progress()):
|
| 1094 |
"""데이터셋 데이터 가져오기"""
|
| 1095 |
def calculate_rank(dataset_id, all_global_datasets, korea_datasets):
|
|
|
|
| 1298 |
return error_fig, error_html, empty_df
|
| 1299 |
|
| 1300 |
|
| 1301 |
+
# Gradio UI 부분
|
| 1302 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 1303 |
gr.Markdown("""
|
| 1304 |
# 🤗 허깅페이스 '한국(언어) 리더보드'
|
|
|
|
| 1347 |
server_port=7860,
|
| 1348 |
share=False
|
| 1349 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|