sadickam commited on
Commit
eda1b2b
Β·
verified Β·
1 Parent(s): 61b0e3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
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 Graph"):
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 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 Graph"):
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 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,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 Graph"):
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 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 Graph"):
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 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")
 
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")