Sa-m commited on
Commit
8f3348c
1 Parent(s): a32f1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -251,9 +251,9 @@ def word_cloud_generator(parsed_text_name,text_Party):
251
  orgImg=Original_Image('BJPMain.jpg')
252
  bwImg=Image_Processed('BJPMain.jpg')
253
  wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True,contCol='white',bckColor='black')
 
254
  plt.tight_layout()
255
  buf = BytesIO()
256
- plt.figure(figsize=[15,12])
257
  plt.savefig(buf)
258
  buf.seek(0)
259
  img1 = Image.open(buf)
@@ -266,9 +266,9 @@ def word_cloud_generator(parsed_text_name,text_Party):
266
  bwImg=Image_Processed('congrsMain.jpg')
267
 
268
  wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True)
 
269
  plt.tight_layout()
270
  buf = BytesIO()
271
- plt.figure(figsize=[15,12])
272
  plt.savefig(buf)
273
  buf.seek(0)
274
  img2 = Image.open(buf)
@@ -280,9 +280,9 @@ def word_cloud_generator(parsed_text_name,text_Party):
280
  orgImg=Original_Image('AAPMain.jpg')
281
  bwImg=Image_Processed('AAPMain.jpg')
282
  wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=False,contCol='black')
 
283
  plt.tight_layout()
284
  buf = BytesIO()
285
- plt.figure(figsize=[15,12])
286
  plt.savefig(buf)
287
  buf.seek(0)
288
  img3 = Image.open(buf)
@@ -294,9 +294,9 @@ def word_cloud_generator(parsed_text_name,text_Party):
294
  plt.figure(figsize=(4,3))
295
  plt.imshow(wordcloud, interpolation="bilinear")
296
  plt.axis("off")
 
297
  plt.tight_layout()
298
  buf = BytesIO()
299
- plt.figure(figsize=[15,12])
300
  plt.savefig(buf)
301
  buf.seek(0)
302
  img4 = Image.open(buf)
 
251
  orgImg=Original_Image('BJPMain.jpg')
252
  bwImg=Image_Processed('BJPMain.jpg')
253
  wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True,contCol='white',bckColor='black')
254
+ plt.figure(figsize=[15,12])
255
  plt.tight_layout()
256
  buf = BytesIO()
 
257
  plt.savefig(buf)
258
  buf.seek(0)
259
  img1 = Image.open(buf)
 
266
  bwImg=Image_Processed('congrsMain.jpg')
267
 
268
  wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True)
269
+ plt.figure(figsize=[15,12])
270
  plt.tight_layout()
271
  buf = BytesIO()
 
272
  plt.savefig(buf)
273
  buf.seek(0)
274
  img2 = Image.open(buf)
 
280
  orgImg=Original_Image('AAPMain.jpg')
281
  bwImg=Image_Processed('AAPMain.jpg')
282
  wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=False,contCol='black')
283
+ plt.figure(figsize=[15,12])
284
  plt.tight_layout()
285
  buf = BytesIO()
 
286
  plt.savefig(buf)
287
  buf.seek(0)
288
  img3 = Image.open(buf)
 
294
  plt.figure(figsize=(4,3))
295
  plt.imshow(wordcloud, interpolation="bilinear")
296
  plt.axis("off")
297
+ plt.figure(figsize=[15,12])
298
  plt.tight_layout()
299
  buf = BytesIO()
 
300
  plt.savefig(buf)
301
  buf.seek(0)
302
  img4 = Image.open(buf)