Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -263,8 +263,8 @@ def word_cloud_generator(parsed_text_name,text_Party):
|
|
263 |
|
264 |
|
265 |
elif 'congress' in parsed:
|
266 |
-
orgImg=Original_Image('
|
267 |
-
bwImg=Image_Processed('
|
268 |
plt.figure(figsize=(15,12))
|
269 |
wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True)
|
270 |
|
@@ -275,6 +275,7 @@ def word_cloud_generator(parsed_text_name,text_Party):
|
|
275 |
img2 = Image.open(buf)
|
276 |
plt.clf()
|
277 |
return img2
|
|
|
278 |
|
279 |
|
280 |
elif 'aap' in parsed:
|
|
|
263 |
|
264 |
|
265 |
elif 'congress' in parsed:
|
266 |
+
orgImg=Original_Image('congress3.jpeg')
|
267 |
+
bwImg=Image_Processed('congress3.jpeg')
|
268 |
plt.figure(figsize=(15,12))
|
269 |
wordCloud(orgImg,bwImg,text_Party,maxWord=3000,colorGener=True)
|
270 |
|
|
|
275 |
img2 = Image.open(buf)
|
276 |
plt.clf()
|
277 |
return img2
|
278 |
+
#congrsMain.jpg
|
279 |
|
280 |
|
281 |
elif 'aap' in parsed:
|