Sa-m commited on
Commit
884d940
1 Parent(s): b4aeabd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -349,6 +349,7 @@ path_input = "./Congress_Manifesto_2019.pdf"
349
  urllib.request.urlretrieve(url, filename=path_input)
350
  '''
351
  def analysis(Manifesto,Search):
 
352
  raw_party = Parsing(Manifesto)
353
  text_Party=clean_text(raw_party)
354
  text_Party= Preprocess(text_Party)
@@ -388,9 +389,10 @@ def analysis(Manifesto,Search):
388
  #concordance(text_Party,Search)
389
  searChRes=get_all_phases_containing_tar_wrd(Search,text_Party)
390
  searChRes=searChRes.replace(Search,"\u0332".join(Search))
 
391
  return searChRes,fdist_Party,img1,img2,img3,img4,img5
392
 
393
- plt.close('all')
394
  Search_txt=gr.inputs.Textbox()
395
  filePdf = gr.inputs.File()
396
  text = gr.outputs.Textbox(label='Context Based Search')
349
  urllib.request.urlretrieve(url, filename=path_input)
350
  '''
351
  def analysis(Manifesto,Search):
352
+ plt.close('all')
353
  raw_party = Parsing(Manifesto)
354
  text_Party=clean_text(raw_party)
355
  text_Party= Preprocess(text_Party)
389
  #concordance(text_Party,Search)
390
  searChRes=get_all_phases_containing_tar_wrd(Search,text_Party)
391
  searChRes=searChRes.replace(Search,"\u0332".join(Search))
392
+
393
  return searChRes,fdist_Party,img1,img2,img3,img4,img5
394
 
395
+
396
  Search_txt=gr.inputs.Textbox()
397
  filePdf = gr.inputs.File()
398
  text = gr.outputs.Textbox(label='Context Based Search')