sadickam commited on
Commit
5cd89cd
ยท
verified ยท
1 Parent(s): f94d289

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -219,13 +219,13 @@ def plot_sdg(df, title, pred_column, icons_folder='assets/icons/'):
219
  title=None,
220
  tickfont=dict(size=12)
221
  ),
222
- margin=dict(l=20, r=30, t=110, b=20), # Increased right margin for icon
223
  height=600,
224
  #width=800,
225
  showlegend=False,
226
  template="simple_white",
227
  xaxis=dict(
228
- tickfont=dict(size=12) # Reduce x-axis font size
229
  ),
230
  )
231
 
@@ -662,10 +662,10 @@ def launch_interface():
662
 
663
  # Generate plots with icon overlay
664
  first_plot = plot_sdg(
665
- df_page_predictions, "๐Ÿ“Š Primary SDGs", 'pred1'
666
  )
667
  second_plot = plot_sdg(
668
- df_page_predictions, "๐Ÿ“ˆ Secondary SDGs", 'pred2'
669
  )
670
 
671
  # Define output file names
@@ -740,10 +740,10 @@ def launch_interface():
740
 
741
  # Generate plots with icon overlay
742
  first_plot = plot_sdg(
743
- df_sentence_predictions, "๐Ÿ“Š Primary SDGs", 'pred1'
744
  )
745
  second_plot = plot_sdg(
746
- df_sentence_predictions, "๐Ÿ“ˆ Secondary SDGs", 'pred2'
747
  )
748
 
749
  # Define output file names
 
219
  title=None,
220
  tickfont=dict(size=12)
221
  ),
222
+ margin=dict(l=20, r=30, t=105, b=20), # Increased right margin for icon
223
  height=600,
224
  #width=800,
225
  showlegend=False,
226
  template="simple_white",
227
  xaxis=dict(
228
+ tickfont=dict(size=13) # Reduce x-axis font size
229
  ),
230
  )
231
 
 
662
 
663
  # Generate plots with icon overlay
664
  first_plot = plot_sdg(
665
+ df_page_predictions, "", 'pred1'
666
  )
667
  second_plot = plot_sdg(
668
+ df_page_predictions, "", 'pred2'
669
  )
670
 
671
  # Define output file names
 
740
 
741
  # Generate plots with icon overlay
742
  first_plot = plot_sdg(
743
+ df_sentence_predictions, "", 'pred1'
744
  )
745
  second_plot = plot_sdg(
746
+ df_sentence_predictions, "", 'pred2'
747
  )
748
 
749
  # Define output file names