Spaces:
GIZ
/
Running on CPU Upgrade

peter2000 commited on
Commit
188bcc5
1 Parent(s): 22b8e0b

Update appStore/sdg_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/sdg_analysis.py +4 -4
appStore/sdg_analysis.py CHANGED
@@ -97,10 +97,10 @@ def app():
97
 
98
  keywords = kw_model.extract_keywords(
99
  all_text,
100
- keyphrase_ngram_range=(1, 2),
101
  use_mmr=True,
102
  stop_words="english",
103
- top_n=15,
104
  diversity=0.7,
105
  )
106
 
@@ -144,7 +144,7 @@ def app():
144
  # load from disc (github repo) for performance boost
145
  @st.cache(allow_output_mutation=True)
146
  def load_sdgClassifier():
147
- classifier = pipeline("text-classification", model= "jonas/sdg_classifier_osdg")
148
 
149
  return classifier
150
 
@@ -198,7 +198,7 @@ def app():
198
 
199
  with c4:
200
  st.pyplot(fig)
201
- with c5:
202
  st.table(df)
203
 
204
 
 
97
 
98
  keywords = kw_model.extract_keywords(
99
  all_text,
100
+ keyphrase_ngram_range=(1, 3),
101
  use_mmr=True,
102
  stop_words="english",
103
+ top_n=10,
104
  diversity=0.7,
105
  )
106
 
 
144
  # load from disc (github repo) for performance boost
145
  @st.cache(allow_output_mutation=True)
146
  def load_sdgClassifier():
147
+ classifier = pipeline("text-classification", model= "jonas/roberta-base-finetuned-sdg")
148
 
149
  return classifier
150
 
 
198
 
199
  with c4:
200
  st.pyplot(fig)
201
+ with c6:
202
  st.table(df)
203
 
204