Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -243,7 +243,7 @@ def wordCloud(orgIm,mask_img,text_Party_pr,maxWord=2000,colorGener=True,contCol=
|
|
243 |
|
244 |
plt.axis("off")
|
245 |
|
246 |
-
def word_cloud_generator(parsed_text_name):
|
247 |
parsed=parsed_text_name.lower()
|
248 |
|
249 |
if 'bjp' in parsed:
|
@@ -344,7 +344,7 @@ def analysis(Manifesto,Search):
|
|
344 |
img2 = Image.open(buf)
|
345 |
plt.clf()
|
346 |
|
347 |
-
img3 = word_cloud_generator(Manifesto.name)
|
348 |
|
349 |
fdist_Party=fDistance(text_Party)
|
350 |
img4=fDistancePlot(text_Party)
|
|
|
243 |
|
244 |
plt.axis("off")
|
245 |
|
246 |
+
def word_cloud_generator(parsed_text_name,text_Party):
|
247 |
parsed=parsed_text_name.lower()
|
248 |
|
249 |
if 'bjp' in parsed:
|
|
|
344 |
img2 = Image.open(buf)
|
345 |
plt.clf()
|
346 |
|
347 |
+
img3 = word_cloud_generator(Manifesto.name,text_Party)
|
348 |
|
349 |
fdist_Party=fDistance(text_Party)
|
350 |
img4=fDistancePlot(text_Party)
|