Spaces:
Running
Running
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>๐ Korean AI leaderboard</title> | |
<link rel="stylesheet" href="style.css" /> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
<style> | |
</style> | |
</head> | |
<body> | |
<!-- <div class="card"> | |
<h1>๐ Korean AI leaderboard</h1> | |
<p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p> | |
<p> | |
Also don't forget to check the | |
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>. | |
</p> | |
</div> --> | |
<div class="header"> | |
<div id="header_title"><h1>๐ Korean AI leaderboard</h1></div> | |
<div id="header_content">[2024 ๊ตญ๋ฆฝ๊ตญ์ด์ ์ธ๊ณต ์ง๋ฅ ์ธ์ด ๋ฅ๋ ฅ ํ๊ฐ]<br><br> | |
- ์ธ๊ณต ์ง๋ฅ, ์ธ๊ฐ์ ๊ฐ์ ์ ์ดํดํ๊ณ ์ด์ผ๊ธฐ๋ฅผ ์์ฑํ๋ค<br> | |
- ๊ณผ์ ์์ธ ๋งํฌ: <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> | |
๐ ๊ฒฝ์ง ๋ํ ๊ณผ์ <br> | |
- 2024๋ 7~8์ ๊ฐ์ต ์์ ์ธ "2024๋ ์ธ๊ณต์ง๋ฅ์ ํ๊ตญ์ด ๋ฅ๋ ฅ ํ๊ฐ" ๊ฒฝ์ง๋ํ ๊ณผ์ ์ ๋๋ค.<br> | |
- ์ผ์ ๋ํ ์์ฝ: ๋ค์๊ฐ ๋ํ์์ ์ฃผ์ ๋ณ ์์ฝ๋ฌธ์ ์์ฑ<br> | |
- ๋ํ ๋งฅ๋ฝ ์ถ๋ก : ๋ฐํ์ ๋งฅ๋ฝ์ ์ ํํ๊ฒ ์ถ๋ก ํ ๋ฌธ์ฅ์ ์ ํ<br><br> | |
๐ ์์ ํ๊ฐ ๊ณผ์ <br> | |
- ์ฐ๊ตฌยท๊ฐ๋ฐ์๋ค์ด ์ธ๊ณต์ง๋ฅ์ ํ๊ตญ์ด ์ฑ๋ฅ์ ๊ฒ์ฆํ๊ณ ํ๊ฐํ ์ ์๋๋ก ์์ ๊ณต๊ฐํฉ๋๋ค.<br> | |
- ์ฐ๊ฒฐ ๋ฌธ์ฅ ์ถ๋ก : ๋ ๋ฌธ์ฅ ์ฌ์ด์ ๋ค์ด๊ฐ ๊ฐ์ฅ ์ ํฉํ ๋ฌธ์ฅ์ ์ ํ<br> | |
- ๋ถ์ ์ ๋ฐ์ธ ํ์ง: ๋ค์ํ ๋ฌธ์์์ ๋ช ์์ ยท๋น๋ช ์์ ๋ถ์ ์ ๋ฐ์ธ ํ์ง<br> | |
- ํจ์ ๋ถ์ ๊ฒฐ๊ณผ ์ค๋ช ๋ฌธ ์์ฑ: ๋ ๋ฌธ์ฅ ์ฌ์ด์ ํจ์ ๊ด๊ณ ๊ทผ๊ฑฐ๋ฅผ ์์ฑ<br> | |
- ๊ตญํ ํ์๋ก ์์ฝ: ๊ตญํ ํ์๋ก ๋ด ์ฃผ์ ์๊ฑด๋ณ ์์ฝ๋ฌธ์ ์์ฑ<br> </div> | |
</div> | |
<div class="content"> | |
<div id="content-title" style="display:flex;"><p id="p-progress">์งํ ์ค ๊ณผ์ </p> <p id="p-past">์งํ ์ค ๊ณผ์ </p></div> | |
<div class="tab" id = "task-in-progress"> | |
<table id = "table-progress"> | |
<thead> | |
<tr> | |
<td>No</td> | |
<td>๊ณผ์ ๋ช </td> | |
<td>๊ณผ์ ๊ธฐ๊ฐ</td> | |
<td>์ํ</td> | |
</tr> | |
</thead> | |
<tbody> | |
</tbody> | |
</table> | |
<table id = "table-progress-detail" style="display:none;"> | |
<thead> | |
<tr> | |
<td>No</td> | |
<td>ํ๋ช </td> | |
<td>๋ชจ๋ธ๋ช </td> | |
<td>์ ์A</td> | |
<td>์ ์B</td> | |
<td>์ ์C</td> | |
<td>์ ์D</td> | |
<td>์ ์ถ ์ผ์</td> | |
</tr> | |
</thead> | |
<tbody> | |
</tbody> | |
</table> | |
</div> | |
<div class="tab" id = "task-past" style="display:none;"> | |
</div> | |
</div> | |
</body> | |
<script> | |
$(document).ready(function() { | |
postdata = {"key":"hello"} | |
$.ajax({ | |
type: 'POST', | |
url: 'http://112.170.149.129:5000/get_row', | |
async: false, | |
data: JSON.stringify(postdata), | |
dataType: 'JSON', | |
async : false, | |
contentType: "application/json", | |
success: function(data) { | |
if(response.status === "success") { | |
// ํ ์ด๋ธ ๋ด์ฉ์ ์ ๋ฐ์ดํธํฉ๋๋ค. | |
var tableBody = $('#table-progress tbody'); | |
tableBody.empty(); // ๊ธฐ์กด ๋ด์ฉ์ ๋น์๋๋ค. | |
response.data.forEach(function(item) { | |
var row = $('<tr>'); | |
row.append($('<td>').text(item[0])); // No | |
row.append($('<td>').text(item[1])); // ๊ณผ์ ๋ช | |
row.append($('<td>').text(item[2])); // ๊ณผ์ ๊ธฐ๊ฐ | |
row.append($('<td>').text(item[3])); // ์ํ | |
tableBody.append(row); | |
// ํด๋ฆญ ์ด๋ฒคํธ ์ถ๊ฐ | |
row.on('click', function() { | |
TaskInProgressRowClicked(item); | |
}); | |
}); | |
} | |
}, | |
error: function(request, status, error) { | |
alert('ajax ํต์ ์คํจ'); | |
alert(error); | |
} | |
}) | |
}); | |
function TaskInProgressRowClicked(item) { | |
var postdata = { | |
no: item[0], | |
taskName: item[1], | |
taskPeriod: item[2], | |
status: item[3] | |
}; | |
// ์ AJAX ์์ฒญ์ ๋ณด๋ ๋๋ค. | |
$.ajax({ | |
type: 'POST', | |
url: 'http://112.170.149.129:5000/get_score', // ์๋ฒ URL์ ์ง์ ํ์ธ์. | |
data: JSON.stringify(postdata), | |
dataType: 'JSON', | |
contentType: "application/json", | |
success: function(response) { | |
// ์ฑ๊ณต์ ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ฐ์์ ๋ ๋ ๋ฒ์งธ ํ ์ด๋ธ์ ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐํฉ๋๋ค. | |
if (response.status === "success") { | |
var detailTableBody = $('#table-progress-detail tbody'); | |
detailTableBody.empty(); // ๊ธฐ์กด ๋ด์ฉ์ ๋น์๋๋ค. | |
response.rows.forEach(function(rowData) { | |
var detailRow = $('<tr>'); | |
rowData.forEach(function(cellData) { | |
detailRow.append($('<td>').text(cellData)); | |
}); | |
detailTableBody.append(detailRow); | |
}); | |
$('#table-progress-detail').show(); // ๋ ๋ฒ์งธ ํ ์ด๋ธ์ ๋ณด์ด๊ฒ ํฉ๋๋ค. | |
} | |
}, | |
error: function(xhr, status, error) { | |
alert('Error: ' + error); | |
} | |
}); | |
} | |
</script> | |
</html> | |