Dabs commited on
Commit
2aeb604
1 Parent(s): 660f59b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import gradio as gr
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
- words = text.lower()split(" ")
14
  words = [word for word in words if word not in STOPWORDS]
15
  mask = np.array(input_img)
16
  text_dict = Counter(words)
 
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
+ words = text.lower().split(" ")
14
  words = [word for word in words if word not in STOPWORDS]
15
  mask = np.array(input_img)
16
  text_dict = Counter(words)