Sa-m commited on
Commit
363e681
1 Parent(s): 1b99a51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -248,10 +248,10 @@ def word_cloud_generator(parsed_text_name,text_Party):
248
  parsed=parsed_text_name.lower()
249
 
250
  if 'bjp' in parsed:
251
- orgImg=Original_Image('bjpImg2.jpg')
252
- bwImg=Image_Processed('bjpImg2.jpg')
253
  plt.figure(figsize=(15,12))
254
- wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True,contCol='white',bckColor='black')
255
 
256
  plt.tight_layout()
257
  buf = BytesIO()
 
248
  parsed=parsed_text_name.lower()
249
 
250
  if 'bjp' in parsed:
251
+ orgImg=Original_Image('BJPMain.jpg')
252
+ bwImg=Image_Processed('BJPMain.jpg')
253
  plt.figure(figsize=(15,12))
254
+ wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True,contCol='white',bckColor='white')
255
 
256
  plt.tight_layout()
257
  buf = BytesIO()