Spaces:
Running
Running
Update index.html
Browse files- index.html +140 -3
index.html
CHANGED
@@ -3,17 +3,154 @@
|
|
3 |
<head>
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
-
<title
|
7 |
<link rel="stylesheet" href="style.css" />
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
-
|
11 |
-
<h1
|
12 |
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
13 |
<p>
|
14 |
Also don't forget to check the
|
15 |
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
16 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
</div>
|
18 |
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="utf-8" />
|
5 |
<meta name="viewport" content="width=device-width" />
|
6 |
+
<title>๐
Korean AI leaderboard</title>
|
7 |
<link rel="stylesheet" href="style.css" />
|
8 |
+
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
9 |
+
<style>
|
10 |
+
|
11 |
+
</style>
|
12 |
</head>
|
13 |
<body>
|
14 |
+
<!-- <div class="card">
|
15 |
+
<h1>๐
Korean AI leaderboard</h1>
|
16 |
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
|
17 |
<p>
|
18 |
Also don't forget to check the
|
19 |
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
20 |
</p>
|
21 |
+
</div> -->
|
22 |
+
<div class="header">
|
23 |
+
<div id="header_title"><h1>๐
Korean AI leaderboard</h1></div>
|
24 |
+
<div id="header_content">[2024 ๊ตญ๋ฆฝ๊ตญ์ด์ ์ธ๊ณต ์ง๋ฅ ์ธ์ด ๋ฅ๋ ฅ ํ๊ฐ]<br><br>
|
25 |
+
|
26 |
+
- ์ธ๊ณต ์ง๋ฅ, ์ธ๊ฐ์ ๊ฐ์ ์ ์ดํดํ๊ณ ์ด์ผ๊ธฐ๋ฅผ ์์ฑํ๋ค<br>
|
27 |
+
- ๊ณผ์ ์์ธ ๋งํฌ: <a>https://kli.korean.go.kr/benchmark/taskBoardsOrdtm/boardsOrdtm/noticeView.do?page=0&recordId=130&boardOrdtmId=&base.condition=boardOrdtm.title&base.keyword=&size=10</a><br><br>
|
28 |
+
|
29 |
+
๐ ๊ฒฝ์ง ๋ํ ๊ณผ์ <br>
|
30 |
+
- 2024๋
7~8์ ๊ฐ์ต ์์ ์ธ "2024๋
์ธ๊ณต์ง๋ฅ์ ํ๊ตญ์ด ๋ฅ๋ ฅ ํ๊ฐ" ๊ฒฝ์ง๋ํ ๊ณผ์ ์
๋๋ค.<br>
|
31 |
+
- ์ผ์ ๋ํ ์์ฝ: ๋ค์๊ฐ ๋ํ์์ ์ฃผ์ ๋ณ ์์ฝ๋ฌธ์ ์์ฑ<br>
|
32 |
+
- ๋ํ ๋งฅ๋ฝ ์ถ๋ก : ๋ฐํ์ ๋งฅ๋ฝ์ ์ ํํ๊ฒ ์ถ๋ก ํ ๋ฌธ์ฅ์ ์ ํ<br><br>
|
33 |
+
|
34 |
+
๐ ์์ ํ๊ฐ ๊ณผ์ <br>
|
35 |
+
- ์ฐ๊ตฌยท๊ฐ๋ฐ์๋ค์ด ์ธ๊ณต์ง๋ฅ์ ํ๊ตญ์ด ์ฑ๋ฅ์ ๊ฒ์ฆํ๊ณ ํ๊ฐํ ์ ์๋๋ก ์์ ๊ณต๊ฐํฉ๋๋ค.<br>
|
36 |
+
- ์ฐ๊ฒฐ ๋ฌธ์ฅ ์ถ๋ก : ๋ ๋ฌธ์ฅ ์ฌ์ด์ ๋ค์ด๊ฐ ๊ฐ์ฅ ์ ํฉํ ๋ฌธ์ฅ์ ์ ํ<br>
|
37 |
+
- ๋ถ์ ์ ๋ฐ์ธ ํ์ง: ๋ค์ํ ๋ฌธ์์์ ๋ช
์์ ยท๋น๋ช
์์ ๋ถ์ ์ ๋ฐ์ธ ํ์ง<br>
|
38 |
+
- ํจ์ ๋ถ์ ๊ฒฐ๊ณผ ์ค๋ช
๋ฌธ ์์ฑ: ๋ ๋ฌธ์ฅ ์ฌ์ด์ ํจ์ ๊ด๊ณ ๊ทผ๊ฑฐ๋ฅผ ์์ฑ<br>
|
39 |
+
- ๊ตญํ ํ์๋ก ์์ฝ: ๊ตญํ ํ์๋ก ๋ด ์ฃผ์ ์๊ฑด๋ณ ์์ฝ๋ฌธ์ ์์ฑ<br> </div>
|
40 |
+
</div>
|
41 |
+
<div class="content">
|
42 |
+
<div id="content-title" style="display:flex;"><p id="p-progress">์งํ ์ค ๊ณผ์ </p> <p id="p-past">์งํ ์ค ๊ณผ์ </p></div>
|
43 |
+
<div class="tab" id = "task-in-progress">
|
44 |
+
<table id = "table-progress">
|
45 |
+
<thead>
|
46 |
+
<tr>
|
47 |
+
<td>No</td>
|
48 |
+
<td>๊ณผ์ ๋ช
</td>
|
49 |
+
<td>๊ณผ์ ๊ธฐ๊ฐ</td>
|
50 |
+
<td>์ํ</td>
|
51 |
+
</tr>
|
52 |
+
</thead>
|
53 |
+
<tbody>
|
54 |
+
</tbody>
|
55 |
+
</table>
|
56 |
+
|
57 |
+
<table id = "table-progress-detail" style="display:none;">
|
58 |
+
<thead>
|
59 |
+
<tr>
|
60 |
+
<td>No</td>
|
61 |
+
<td>ํ๋ช
</td>
|
62 |
+
<td>๋ชจ๋ธ๋ช
</td>
|
63 |
+
<td>์ ์A</td>
|
64 |
+
<td>์ ์B</td>
|
65 |
+
<td>์ ์C</td>
|
66 |
+
<td>์ ์D</td>
|
67 |
+
<td>์ ์ถ ์ผ์</td>
|
68 |
+
</tr>
|
69 |
+
</thead>
|
70 |
+
<tbody>
|
71 |
+
</tbody>
|
72 |
+
</table>
|
73 |
+
</div>
|
74 |
+
<div class="tab" id = "task-past" style="display:none;">
|
75 |
+
</div>
|
76 |
</div>
|
77 |
</body>
|
78 |
+
<script>
|
79 |
+
$(document).ready(function() {
|
80 |
+
postdata = {"key":"hello"}
|
81 |
+
|
82 |
+
$.ajax({
|
83 |
+
type: 'POST',
|
84 |
+
url: 'http://112.170.149.129:5000/get_row',
|
85 |
+
async: false,
|
86 |
+
data: JSON.stringify(postdata),
|
87 |
+
dataType: 'JSON',
|
88 |
+
async : false,
|
89 |
+
contentType: "application/json",
|
90 |
+
success: function(data) {
|
91 |
+
if(response.status === "success") {
|
92 |
+
// ํ
์ด๋ธ ๋ด์ฉ์ ์
๋ฐ์ดํธํฉ๋๋ค.
|
93 |
+
var tableBody = $('#table-progress tbody');
|
94 |
+
tableBody.empty(); // ๊ธฐ์กด ๋ด์ฉ์ ๋น์๋๋ค.
|
95 |
+
|
96 |
+
response.data.forEach(function(item) {
|
97 |
+
var row = $('<tr>');
|
98 |
+
row.append($('<td>').text(item[0])); // No
|
99 |
+
row.append($('<td>').text(item[1])); // ๊ณผ์ ๋ช
|
100 |
+
row.append($('<td>').text(item[2])); // ๊ณผ์ ๊ธฐ๊ฐ
|
101 |
+
row.append($('<td>').text(item[3])); // ์ํ
|
102 |
+
tableBody.append(row);
|
103 |
+
|
104 |
+
// ํด๋ฆญ ์ด๋ฒคํธ ์ถ๊ฐ
|
105 |
+
row.on('click', function() {
|
106 |
+
TaskInProgressRowClicked(item);
|
107 |
+
});
|
108 |
+
});
|
109 |
+
}
|
110 |
+
},
|
111 |
+
error: function(request, status, error) {
|
112 |
+
alert('ajax ํต์ ์คํจ');
|
113 |
+
alert(error);
|
114 |
+
}
|
115 |
+
})
|
116 |
+
});
|
117 |
+
|
118 |
+
function TaskInProgressRowClicked(item) {
|
119 |
+
var postdata = {
|
120 |
+
no: item[0],
|
121 |
+
taskName: item[1],
|
122 |
+
taskPeriod: item[2],
|
123 |
+
status: item[3]
|
124 |
+
};
|
125 |
+
|
126 |
+
// ์ AJAX ์์ฒญ์ ๋ณด๋
๋๋ค.
|
127 |
+
$.ajax({
|
128 |
+
type: 'POST',
|
129 |
+
url: 'http://112.170.149.129:5000/get_score', // ์๋ฒ URL์ ์ง์ ํ์ธ์.
|
130 |
+
data: JSON.stringify(postdata),
|
131 |
+
dataType: 'JSON',
|
132 |
+
contentType: "application/json",
|
133 |
+
success: function(response) {
|
134 |
+
// ์ฑ๊ณต์ ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ฐ์์ ๋ ๋ ๋ฒ์งธ ํ
์ด๋ธ์ ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐํฉ๋๋ค.
|
135 |
+
if (response.status === "success") {
|
136 |
+
var detailTableBody = $('#table-progress-detail tbody');
|
137 |
+
detailTableBody.empty(); // ๊ธฐ์กด ๋ด์ฉ์ ๋น์๋๋ค.
|
138 |
+
|
139 |
+
response.rows.forEach(function(rowData) {
|
140 |
+
var detailRow = $('<tr>');
|
141 |
+
rowData.forEach(function(cellData) {
|
142 |
+
detailRow.append($('<td>').text(cellData));
|
143 |
+
});
|
144 |
+
detailTableBody.append(detailRow);
|
145 |
+
});
|
146 |
+
|
147 |
+
$('#table-progress-detail').show(); // ๋ ๋ฒ์งธ ํ
์ด๋ธ์ ๋ณด์ด๊ฒ ํฉ๋๋ค.
|
148 |
+
}
|
149 |
+
},
|
150 |
+
error: function(xhr, status, error) {
|
151 |
+
alert('Error: ' + error);
|
152 |
+
}
|
153 |
+
});
|
154 |
+
}
|
155 |
+
</script>
|
156 |
</html>
|