Spaces:
Running
Running
interactive table
Browse files- ai_models.html +13 -20
- style.css +9 -1
ai_models.html
CHANGED
|
@@ -43,7 +43,10 @@
|
|
| 43 |
<section class="mt-4" id="segmentation-models">
|
| 44 |
<h2>Segmentation models</h2>
|
| 45 |
<table class="mt-4 ml-5">
|
| 46 |
-
<tr>
|
|
|
|
|
|
|
|
|
|
| 47 |
<th>Location</th>
|
| 48 |
<th>Architectures</th>
|
| 49 |
</tr>
|
|
@@ -75,18 +78,18 @@
|
|
| 75 |
<td>Esophagus OAR</td>
|
| 76 |
<td>nnUNetv2</td>
|
| 77 |
</tr>
|
| 78 |
-
<tr>
|
| 79 |
-
<td>Body
|
| 80 |
<td>SwinUNETR</td>
|
| 81 |
</tr>
|
| 82 |
</table>
|
| 83 |
-
<div class="row" style="border: 5px solid rgb(189, 190, 191)">
|
| 84 |
<div id="model" style="padding:50px"></div>
|
| 85 |
</div>
|
| 86 |
</section>
|
| 87 |
|
| 88 |
-
<section class="mt-4" id="dose-prediction
|
| 89 |
-
<h2>Dose prediction</h2>
|
| 90 |
<table class="mt-4 ml-5">
|
| 91 |
<tr>
|
| 92 |
<th>Location</th>
|
|
@@ -142,11 +145,12 @@
|
|
| 142 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
| 143 |
|
| 144 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
$(document).ready(function () {
|
| 146 |
var apiUrl = 'https://huggingface.co/AI4MIRO/SwinUNETR_body_segmentation/raw/main/README.md'
|
| 147 |
-
//var apiUrl = 'https://gitlab.com/api/v4/projects/' + projectId + '/repository/tags'; -->
|
| 148 |
-
|
| 149 |
-
// Fetch the latest release information
|
| 150 |
|
| 151 |
$.ajax({
|
| 152 |
url: apiUrl,
|
|
@@ -154,17 +158,6 @@
|
|
| 154 |
success: function (data) {
|
| 155 |
console.log("data",data);
|
| 156 |
$("#model").html(marked(data))
|
| 157 |
-
// if (data.length > 0) {
|
| 158 |
-
// var latestRelease = data[0];
|
| 159 |
-
// console.log("latestRelease",latestRelease);
|
| 160 |
-
// var releaseAssets = latestRelease.assets;
|
| 161 |
-
// console.log("releaseAssets",releaseAssets);
|
| 162 |
-
// // Assuming the first asset is the desired download (e.g., a zip file)
|
| 163 |
-
// var downloadUrl = releaseAssets.sources.length > 0 ? releaseAssets.sources[0].url : '';
|
| 164 |
-
|
| 165 |
-
// // Update the download button href attribute
|
| 166 |
-
// $('#downloadButton').attr('onclick', 'window.location.href="' + downloadUrl + '"');
|
| 167 |
-
// }
|
| 168 |
},
|
| 169 |
error: function (error) {
|
| 170 |
console.error('Error fetching release information:', error);
|
|
|
|
| 43 |
<section class="mt-4" id="segmentation-models">
|
| 44 |
<h2>Segmentation models</h2>
|
| 45 |
<table class="mt-4 ml-5">
|
| 46 |
+
<tr class="header">
|
| 47 |
+
<th colspan="2">Segmentation models</th>
|
| 48 |
+
</tr>
|
| 49 |
+
<tr class="header">
|
| 50 |
<th>Location</th>
|
| 51 |
<th>Architectures</th>
|
| 52 |
</tr>
|
|
|
|
| 78 |
<td>Esophagus OAR</td>
|
| 79 |
<td>nnUNetv2</td>
|
| 80 |
</tr>
|
| 81 |
+
<tr class="clickable" data-href="#SwinBs">
|
| 82 |
+
<td>Body</td>
|
| 83 |
<td>SwinUNETR</td>
|
| 84 |
</tr>
|
| 85 |
</table>
|
| 86 |
+
<div id="SwinBs" class="row" style="border: 5px solid rgb(189, 190, 191)">
|
| 87 |
<div id="model" style="padding:50px"></div>
|
| 88 |
</div>
|
| 89 |
</section>
|
| 90 |
|
| 91 |
+
<section class="mt-4" id="dose-prediction">
|
| 92 |
+
<h2>Dose prediction models</h2>
|
| 93 |
<table class="mt-4 ml-5">
|
| 94 |
<tr>
|
| 95 |
<th>Location</th>
|
|
|
|
| 145 |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
| 146 |
|
| 147 |
<script>
|
| 148 |
+
$(".clickable").click(function(){
|
| 149 |
+
window.location = $(this).data("href");
|
| 150 |
+
});
|
| 151 |
+
|
| 152 |
$(document).ready(function () {
|
| 153 |
var apiUrl = 'https://huggingface.co/AI4MIRO/SwinUNETR_body_segmentation/raw/main/README.md'
|
|
|
|
|
|
|
|
|
|
| 154 |
|
| 155 |
$.ajax({
|
| 156 |
url: apiUrl,
|
|
|
|
| 158 |
success: function (data) {
|
| 159 |
console.log("data",data);
|
| 160 |
$("#model").html(marked(data))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
},
|
| 162 |
error: function (error) {
|
| 163 |
console.error('Error fetching release information:', error);
|
style.css
CHANGED
|
@@ -19,10 +19,18 @@ td, th {
|
|
| 19 |
border-bottom: 1px solid rgb(107, 114, 128);
|
| 20 |
border-right: 1px solid rgb(107, 114, 128);
|
| 21 |
font-size: large;
|
| 22 |
-
background-color: rgb(250, 250, 251);
|
| 23 |
padding: 10px 50px;
|
| 24 |
}
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
table {
|
| 27 |
border: 3px solid rgb(250, 250, 251);
|
| 28 |
}
|
|
|
|
| 19 |
border-bottom: 1px solid rgb(107, 114, 128);
|
| 20 |
border-right: 1px solid rgb(107, 114, 128);
|
| 21 |
font-size: large;
|
|
|
|
| 22 |
padding: 10px 50px;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
tr {
|
| 26 |
+
background-color: rgb(250, 250, 251);
|
| 27 |
+
transition: 0.2s;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
tr:hover:not(.header) {
|
| 31 |
+
background-color: rgb(180, 180, 180);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
table {
|
| 35 |
border: 3px solid rgb(250, 250, 251);
|
| 36 |
}
|