Sa-m commited on
Commit
afae3ae
1 Parent(s): 32f8e13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -243,7 +243,8 @@ def Image_Processed(path):
243
 
244
  return bw_img
245
 
246
- def wordCloud(orgIm,mask_img,text_Party_pr,maxWord=2000,colorGener=True,contCol='white',bckColor='white'):
 
247
  '''
248
  Generating word cloud
249
  '''
@@ -280,7 +281,8 @@ def word_cloud_generator(parsed_text_name,text_Party):
280
  orgImg=Original_Image('BJPMain.jpg')
281
  bwImg=Image_Processed('BJPMain.jpg')
282
  plt.figure(figsize=(5,4))
283
- wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGen=True,contCol='white',bckColor='black')
 
284
  plt.tight_layout()
285
  buf = BytesIO()
286
  plt.savefig(buf)
 
243
 
244
  return bw_img
245
 
246
+ def WordCloud(orgIm,mask_img,text_Party_pr,maxWord=2000,colorGener=True,
247
+ contCol='white',bckColor='white'):
248
  '''
249
  Generating word cloud
250
  '''
 
281
  orgImg=Original_Image('BJPMain.jpg')
282
  bwImg=Image_Processed('BJPMain.jpg')
283
  plt.figure(figsize=(5,4))
284
+ wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True,
285
+ contCol='white', bckColor='black')
286
  plt.tight_layout()
287
  buf = BytesIO()
288
  plt.savefig(buf)