Update app.py
Browse files
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)
|