Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
252 |
-
bwImg=Image_Processed('
|
253 |
plt.figure(figsize=(15,12))
|
254 |
-
wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True,contCol='white',bckColor='
|
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()
|