mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-04 22:08:12 +02:00
77 lines
2.3 KiB
HTML
77 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/x-icon" href="/img/crab.png">
|
|
<title>Dataset Downloader & Answer Uploader</title>
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<script src="https://cdn.socket.io/4.5.4/socket.io.min.js"></script>
|
|
<script defer src="js/index.js"></script>
|
|
<script defer src="js/sorttable.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>
|
|
<img src="/img/crab.png" alt="Crab" class="crab-icon">
|
|
Crab Webapp
|
|
</h1>
|
|
|
|
<fieldset>
|
|
<legend><strong>Download a Dataset</strong></legend>
|
|
<label for="dataset-select">Dataset:</label>
|
|
<select id="dataset-select">
|
|
<option value="comment_generation">Comment Generation</option>
|
|
<option value="code_refinement">Code Refinement</option>
|
|
</select>
|
|
<label>
|
|
<input type="checkbox" id="with-context">
|
|
Include context
|
|
</label>
|
|
<br /><br />
|
|
<button id="download-dataset">Download</button>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend><strong>Upload Your Answers</strong></legend>
|
|
<label for="answer-cype">Type:</label>
|
|
<select id="answer-cype">
|
|
<option value="comments">Comment Generation</option>
|
|
<option value="refinement">Code Refinement</option>
|
|
</select>
|
|
<br /><br />
|
|
<input type="file" id="file-cnput" accept="application/json" />
|
|
<br /><br />
|
|
<button id="upload-btn">Upload JSON</button>
|
|
<span id="status" style="color: green;"> </span>
|
|
</fieldset>
|
|
|
|
|
|
<div id="progress-container">
|
|
<h3>Processing answers...</h3>
|
|
<div>
|
|
<progress id="progress-bar" value="0" max="100"></progress>
|
|
<span id="progress-text">0%</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="results-container">
|
|
<h3>Results<button id="download-results">Download</button></h3>
|
|
<table class="sortable">
|
|
<thead>
|
|
<tr>
|
|
<th>id</th>
|
|
<th>Proposed comment</th>
|
|
<th>Max bleu score</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|