Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -540,9 +540,9 @@ def launch_interface():
|
|
540 |
|
541 |
# Nested Tabs for Primary and Secondary SDGs
|
542 |
with gr.Tabs():
|
543 |
-
with gr.TabItem("π Primary SDGs
|
544 |
with gr.Row():
|
545 |
-
primary_page_plot = gr.Plot(label="π Primary SDGs [Page-Level]", scale=2)
|
546 |
gr.Markdown(
|
547 |
"When the analysis is done, the Primary SDGs bar graph on the left will show "+
|
548 |
"the percentage of pages that strongly align with each SDG. The icon for the most frequent "+
|
@@ -550,15 +550,15 @@ def launch_interface():
|
|
550 |
label = "Note", container=True
|
551 |
)
|
552 |
|
553 |
-
gr.Markdown("##### Download
|
554 |
with gr.Row():
|
555 |
page_csv = gr.File(label="π Download Page Predictions CSV")
|
556 |
page_docx = gr.File(label="π Download Page Report DOCX")
|
557 |
page_jpeg1 = gr.File(label="πΌοΈ Download Primary SDGs JPEG")
|
558 |
|
559 |
-
with gr.TabItem("π Secondary SDGs
|
560 |
with gr.Row():
|
561 |
-
secondary_page_plot = gr.Plot(label="π Secondary SDGs [Page-Level]", scale=2)
|
562 |
gr.Markdown(
|
563 |
"When the analysis is done, the Secondary SDGs bar graph on the left will show "+
|
564 |
"SDGs that are not the primary focus of the pages analysed. These SDGs are second to the "+
|
@@ -566,7 +566,7 @@ def launch_interface():
|
|
566 |
label = "Note", container=True
|
567 |
)
|
568 |
|
569 |
-
gr.Markdown("##### Download
|
570 |
with gr.Row():
|
571 |
page_csv_secondary = gr.File(label="π Download Page Predictions CSV")
|
572 |
page_report_file_secondary = gr.File(label="π Download Page Report DOCX")
|
@@ -588,9 +588,9 @@ def launch_interface():
|
|
588 |
|
589 |
# Nested Tabs for Primary and Secondary SDGs
|
590 |
with gr.Tabs():
|
591 |
-
with gr.TabItem("π Primary SDGs
|
592 |
with gr.Row():
|
593 |
-
primary_sentence_plot = gr.Plot(label="π Primary SDGs [Sentence-Level]", scale=2)
|
594 |
gr.Markdown(
|
595 |
"When the analysis is done, the Primary SDGs bar graph on the left will show "+
|
596 |
"the percentage of sentences that strongly align with each SDG. The icon for the most frequent "+
|
@@ -598,15 +598,15 @@ def launch_interface():
|
|
598 |
label = "Note", container=True
|
599 |
)
|
600 |
|
601 |
-
gr.Markdown("##### Download
|
602 |
with gr.Row():
|
603 |
sentence_csv = gr.File(label="π Download Sentence Predictions CSV")
|
604 |
sentence_docx = gr.File(label="π Download Sentence Report DOCX")
|
605 |
sentence_jpeg1 = gr.File(label="πΌοΈ Download Primary SDGs JPEG")
|
606 |
|
607 |
-
with gr.TabItem("π Secondary SDGs
|
608 |
with gr.Row():
|
609 |
-
secondary_sentence_plot = gr.Plot(label="π Secondary SDGs [Sentence-Level]", scale=2)
|
610 |
gr.Markdown(
|
611 |
"When the analysis is done, the Secondary SDGs bar graph on the left will show "+
|
612 |
"SDGs that are not the primary focus of the sentences analysed. These SDGs are second to the "+
|
@@ -614,7 +614,7 @@ def launch_interface():
|
|
614 |
label = "Note", container=True
|
615 |
)
|
616 |
|
617 |
-
gr.Markdown("##### Download
|
618 |
with gr.Row():
|
619 |
sentence_csv_secondary = gr.File(label="π Download Sentence Predictions CSV")
|
620 |
sentence_report_file_secondary = gr.File(label="π Download Sentence Report DOCX")
|
|
|
540 |
|
541 |
# Nested Tabs for Primary and Secondary SDGs
|
542 |
with gr.Tabs():
|
543 |
+
with gr.TabItem("π Primary SDGs"):
|
544 |
with gr.Row():
|
545 |
+
primary_page_plot = gr.Plot(label="π Primary SDGs Graph [Page-Level]", scale=2)
|
546 |
gr.Markdown(
|
547 |
"When the analysis is done, the Primary SDGs bar graph on the left will show "+
|
548 |
"the percentage of pages that strongly align with each SDG. The icon for the most frequent "+
|
|
|
550 |
label = "Note", container=True
|
551 |
)
|
552 |
|
553 |
+
gr.Markdown("##### Download Results")
|
554 |
with gr.Row():
|
555 |
page_csv = gr.File(label="π Download Page Predictions CSV")
|
556 |
page_docx = gr.File(label="π Download Page Report DOCX")
|
557 |
page_jpeg1 = gr.File(label="πΌοΈ Download Primary SDGs JPEG")
|
558 |
|
559 |
+
with gr.TabItem("π Secondary SDGs"):
|
560 |
with gr.Row():
|
561 |
+
secondary_page_plot = gr.Plot(label="π Secondary SDGs Graph [Page-Level]", scale=2)
|
562 |
gr.Markdown(
|
563 |
"When the analysis is done, the Secondary SDGs bar graph on the left will show "+
|
564 |
"SDGs that are not the primary focus of the pages analysed. These SDGs are second to the "+
|
|
|
566 |
label = "Note", container=True
|
567 |
)
|
568 |
|
569 |
+
gr.Markdown("##### Download Results")
|
570 |
with gr.Row():
|
571 |
page_csv_secondary = gr.File(label="π Download Page Predictions CSV")
|
572 |
page_report_file_secondary = gr.File(label="π Download Page Report DOCX")
|
|
|
588 |
|
589 |
# Nested Tabs for Primary and Secondary SDGs
|
590 |
with gr.Tabs():
|
591 |
+
with gr.TabItem("π Primary SDGs"):
|
592 |
with gr.Row():
|
593 |
+
primary_sentence_plot = gr.Plot(label="π Primary SDGs Graph [Sentence-Level]", scale=2)
|
594 |
gr.Markdown(
|
595 |
"When the analysis is done, the Primary SDGs bar graph on the left will show "+
|
596 |
"the percentage of sentences that strongly align with each SDG. The icon for the most frequent "+
|
|
|
598 |
label = "Note", container=True
|
599 |
)
|
600 |
|
601 |
+
gr.Markdown("##### Download Results")
|
602 |
with gr.Row():
|
603 |
sentence_csv = gr.File(label="π Download Sentence Predictions CSV")
|
604 |
sentence_docx = gr.File(label="π Download Sentence Report DOCX")
|
605 |
sentence_jpeg1 = gr.File(label="πΌοΈ Download Primary SDGs JPEG")
|
606 |
|
607 |
+
with gr.TabItem("π Secondary SDGs"):
|
608 |
with gr.Row():
|
609 |
+
secondary_sentence_plot = gr.Plot(label="π Secondary SDGs Graph [Sentence-Level]", scale=2)
|
610 |
gr.Markdown(
|
611 |
"When the analysis is done, the Secondary SDGs bar graph on the left will show "+
|
612 |
"SDGs that are not the primary focus of the sentences analysed. These SDGs are second to the "+
|
|
|
614 |
label = "Note", container=True
|
615 |
)
|
616 |
|
617 |
+
gr.Markdown("##### Download Results")
|
618 |
with gr.Row():
|
619 |
sentence_csv_secondary = gr.File(label="π Download Sentence Predictions CSV")
|
620 |
sentence_report_file_secondary = gr.File(label="π Download Sentence Report DOCX")
|