File tree Expand file tree Collapse file tree 3 files changed +15
-11
lines changed
Expand file tree Collapse file tree 3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,10 @@ a.dataset-tag:hover {
291291
292292
293293
294+
295+
296+
297+
294298## Browse Implementations by Type
295299
296300=== "applied-research"
@@ -351,11 +355,8 @@ a.dataset-tag:hover {
351355 <div class="tag-container">
352356 <a href="https://arxiv.org/abs/1602.05629" class="tag" target="_blank">FedAvg</a> <a href="https://arxiv.org/abs/2003.00295" class="tag" target="_blank">FedOpt</a> <a href="https://arxiv.org/abs/1812.06127" class="tag" target="_blank">FedProx</a> <a href="https://arxiv.org/abs/1910.06378" class="tag" target="_blank">SCAFFOLD</a> <a href="https://arxiv.org/abs/2103.16257" class="tag" target="_blank">MOON</a> <a href="https://arxiv.org/abs/2103.06030" class="tag" target="_blank">FedDG-GA</a> <a href="https://proceedings.mlr.press/v202/panchal23a/panchal23a.pdf" class="tag" target="_blank">FLASH</a> <a href="https://arxiv.org/pdf/2209.15328" class="tag" target="_blank">FedPM</a> <a href="https://arxiv.org/abs/2205.13692" class="tag" target="_blank">Personal FL</a> <a href="https://arxiv.org/abs/2102.07623" class="tag" target="_blank">FedBN</a> <a href="https://arxiv.org/abs/1912.00818" class="tag" target="_blank">FedPer</a> <a href="https://arxiv.org/abs/2303.05206" class="tag" target="_blank">FedRep</a> <a href="https://arxiv.org/abs/2012.04221" class="tag" target="_blank">Ditto</a> <a href="https://arxiv.org/abs/2206.07902" class="tag" target="_blank">MR-MTL</a> <a href="https://arxiv.org/abs/2003.13461" class="tag" target="_blank">APFL</a> <a href="https://ieeexplore.ieee.org/document/10020518/" class="tag" target="_blank">PerFCL</a> <a href="https://arxiv.org/pdf/2309.16825.pdf" class="tag" target="_blank">FENDA-FL</a> <span class="tag" data-tippy="FENDA+Ditto">FENDA+Ditto</span>
353357 </div>
354- <div class="datasets">
355- <strong>Datasets:</strong> <span class="dataset-tag">Physionet Challenge 2012</span> <span class="dataset-tag">wiki2000</span>
356- </div>
357358
358- </div>
359359
360360 </div>
361361
362+ </div>
Original file line number Diff line number Diff line change @@ -38,9 +38,6 @@ algorithms:
3838 url : https://arxiv.org/pdf/2309.16825.pdf
3939 - name : FENDA+Ditto
4040 url : null
41- public_datasets :
42- - name : Physionet Challenge 2012
43- - name : wiki2000
4441type : tool
4542year : 2024
4643github_url : https://github.com/VectorInstitute/fl4health
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ def format_tags(items_list, tag_class) -> str:
3939
4040 """
4141 if not items_list :
42- return f"<em>No { tag_class .replace ('-tag' , '' )} available</em>"
42+ # Returning an empty string is intentional to avoid rendering unnecessary UI elements
43+ return ""
4344
4445 # Create tags for each item in the list
4546 formatted_text = ""
@@ -224,6 +225,13 @@ def generate_card_html(impl: Dict) -> str:
224225 { paper_html }
225226 </div>"""
226227
228+ # Prepare datasets section HTML if datasets exist
229+ datasets_html = ""
230+ if formatted_datasets :
231+ datasets_html = f""" <div class="datasets">
232+ <strong>Datasets:</strong> { formatted_datasets }
233+ </div>"""
234+
227235 # Create the card HTML with proper indentation
228236 return f""" <div class="card" markdown>
229237 <div class="header">
@@ -235,9 +243,7 @@ def generate_card_html(impl: Dict) -> str:
235243 <div class="tag-container">
236244{ tag_html .rstrip () if tag_html else " <!-- No tags available -->" }
237245 </div>
238- <div class="datasets">
239- <strong>Datasets:</strong> { formatted_datasets }
240- </div>
246+ { datasets_html }
241247{ citation_html if citation_html else "" }
242248 </div>
243249"""
You can’t perform that action at this time.
0 commit comments