Barnabiii commited on
Commit
756bbfb
1 Parent(s): 75b5d36

adding model card display

Browse files
Files changed (1) hide show
  1. ai_models.html +37 -1
ai_models.html CHANGED
@@ -4,6 +4,8 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
  <title>PARROT - Documentation</title>
 
 
7
  <link rel="stylesheet" type="text/css" href="style.css">
8
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
9
  </head>
@@ -78,6 +80,9 @@
78
  <td>SwinUNETR</td>
79
  </tr>
80
  </table>
 
 
 
81
  </section>
82
 
83
  <section class="mt-4" id="dose-prediction models">
@@ -132,9 +137,40 @@
132
  </div>
133
  </div>
134
 
135
- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
136
  <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
137
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
138
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  </body>
140
  </html>
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
  <title>PARROT - Documentation</title>
7
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
8
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.6/marked.min.js"></script>
9
  <link rel="stylesheet" type="text/css" href="style.css">
10
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
11
  </head>
 
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 models">
 
137
  </div>
138
  </div>
139
 
140
+ <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
141
  <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
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,
153
+ method: 'GET',
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);
171
+ }
172
+ });
173
+ });
174
+ </script>
175
  </body>
176
  </html>