Skip to content

Commit

Permalink
Merge pull request #180 from ufal/add-resource-size
Browse files Browse the repository at this point in the history
Display resource size
  • Loading branch information
kasnerz authored Jan 20, 2025
2 parents 4c0bf06 + 3fcdfc5 commit 31f01f3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
11 changes: 10 additions & 1 deletion factgenie/config/resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ easy-vqa:
source: https://github.com/vzhou842/easy-VQA
splits:
- test
download-size: 34 kB
logicnlg-100:
class: logicnlg.LogicNLG
name: logicnlg-100
Expand All @@ -18,6 +19,7 @@ logicnlg-100:
source: https://huggingface.co/datasets/kasnerz/logicnlg
splits:
- test
download-size: 122 kB
quintd1-gsmarena:
name: quintd1-gsmarena
annotations:
Expand All @@ -36,6 +38,7 @@ quintd1-gsmarena:
splits:
- dev
- test
download-size: 728 kB
quintd1-ice-hockey:
name: quintd1-ice-hockey
annotations:
Expand All @@ -54,6 +57,7 @@ quintd1-ice-hockey:
splits:
- dev
- test
download-size: 728 kB
quintd1-openweather:
name: quintd1-openweather
annotations:
Expand All @@ -68,10 +72,11 @@ quintd1-openweather:
- mistral
- zephyr
- gpt-3.5
source: https://gitQuintd1-hub.com/kasnerz/quintd/tree/main/data/quintd-1
source: https://github.com/kasnerz/quintd/tree/main/data/quintd-1
splits:
- dev
- test
download-size: 728 kB
quintd1-owid:
name: quintd1-owid
annotations:
Expand All @@ -91,6 +96,7 @@ quintd1-owid:
splits:
- dev
- test
download-size: 728 kB
quintd1-wikidata:
name: quintd1-wikidata
annotations:
Expand All @@ -110,6 +116,7 @@ quintd1-wikidata:
splits:
- dev
- test
download-size: 728 kB
xsum-debug:
name: xsum-debug
class: basic.PlainTextDataset
Expand All @@ -122,6 +129,7 @@ xsum-debug:
source: https://github.com/EdinburghNLP/XSum
splits:
- test
download-size: 5 kB
propaganda-techniques:
name: propaganda-techniques
class: propaganda_techniques.PropagandaTechniques
Expand All @@ -140,3 +148,4 @@ Loaded Language, Name Calling&Labeling, Repetition, Exaggeration&Minimization, D
- train
- dev
- test
download-size: 1.49 MB
4 changes: 4 additions & 0 deletions factgenie/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,10 @@ a:hover {
max-width: 700px;
}

.modal-xl {
max-width: 1000px !important;
}

#about-btn {
padding: 5px;
/* border-radius: 15px; */
Expand Down
10 changes: 9 additions & 1 deletion factgenie/templates/include/add_dataset_modal.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="modal fade" id="add-dataset-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="about-modal-label">Add dataset</h5>
Expand Down Expand Up @@ -53,6 +53,7 @@ <h5 class="modal-title" id="about-modal-label">Add dataset</h5>
<th scope="col">Campaigns</th>
<th scope="col">Source</th>
<th scope="col">Download</th>
<th scope="col">Size</th>
<th scope="col" data-visible="false">Description</th>
</tr>
</thead>
Expand Down Expand Up @@ -103,6 +104,13 @@ <h5 class="modal-title" id="about-modal-label">Add dataset</h5>
style="margin: 10px 12px 10px 12px; {% if not dataset.downloaded %}display: none;{% endif %}"
id="check-downloaded-{{ dataset_id }}"></i>
</td>
<td class="download-size">
{% if dataset['download-size'] %}
{{ dataset['download-size']|safe }}
{% else %}
<i>-</i>
{% endif %}
</td>
<td class="dataset-description" style="display: none;">
<div class="blue-link">
{% if dataset.description %}
Expand Down

0 comments on commit 31f01f3

Please sign in to comment.