Sa-m commited on
Commit
b183374
1 Parent(s): 5f74531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ nltk.download('words')
45
  #def Parsing(parsed_text):
46
  #parsed_text=parsed_text.name
47
  #raw_party =parser.from_file(parsed_text)
48
- # raw_party = raw_party['content']
49
  # return clean(raw_party)
50
 
51
  def Parsing(parsed_text):
@@ -404,7 +404,7 @@ plot4=gr.outputs.Image(label='Frequency Distribution')
404
  plot5=gr.outputs.Image(label='Dispersion Plot')
405
 
406
  io=gr.Interface(fn=analysis, inputs=[filePdf,Search_txt], outputs=[text,mfw,plot1,plot2,plot3,plot4,plot5], title='Manifesto Analysis',examples=[['Example/AAP_Manifesto_2019.pdf','government'],['Example/Bjp_Manifesto_2019.pdf','environment'],['Example/Congress_Manifesto_2019.pdf','safety']],theme='peach')
407
- io.launch(debug=True,share=False)
408
 
409
 
410
  #allow_screenshot=False,allow_flagging="never",
 
45
  #def Parsing(parsed_text):
46
  #parsed_text=parsed_text.name
47
  #raw_party =parser.from_file(parsed_text)
48
+ # raw_party = raw_party['content'],cache_examples=True
49
  # return clean(raw_party)
50
 
51
  def Parsing(parsed_text):
 
404
  plot5=gr.outputs.Image(label='Dispersion Plot')
405
 
406
  io=gr.Interface(fn=analysis, inputs=[filePdf,Search_txt], outputs=[text,mfw,plot1,plot2,plot3,plot4,plot5], title='Manifesto Analysis',examples=[['Example/AAP_Manifesto_2019.pdf','government'],['Example/Bjp_Manifesto_2019.pdf','environment'],['Example/Congress_Manifesto_2019.pdf','safety']],theme='peach')
407
+ io.launch(debug=True,share=False,enable_queue=True)
408
 
409
 
410
  #allow_screenshot=False,allow_flagging="never",