Dabs commited on
Commit
abd411e
1 Parent(s): 99adff3
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
 
9
 
10
  def create_wc(text, lang, custom_sw, input_img, color_rgb):
11
- STOPWORDS = set(get_stop_words('en'))
12
  STOPWORDS.update(custom_sw.replace(" ", "").split(","))
13
  mask = np.array(input_img)
14
  wordcloud = WordCloud(background_color="rgba(0, 0, 0, 0)", mode="RGBA",mask=mask, width=1000, height=1500, stopwords=STOPWORDS).generate(text.lower())
 
8
 
9
 
10
  def create_wc(text, lang, custom_sw, input_img, color_rgb):
11
+ STOPWORDS = set(get_stop_words(lang))
12
  STOPWORDS.update(custom_sw.replace(" ", "").split(","))
13
  mask = np.array(input_img)
14
  wordcloud = WordCloud(background_color="rgba(0, 0, 0, 0)", mode="RGBA",mask=mask, width=1000, height=1500, stopwords=STOPWORDS).generate(text.lower())