Sa-m commited on
Commit
57b2dad
·
1 Parent(s): df28b21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -392,15 +392,15 @@ def analysis(Manifesto,Search):
392
  return searChRes,fdist_Party,img1,img2,img3,img4,img5
393
 
394
 
395
- Search_txt=gr.inputs.Textbox()
396
- filePdf = gr.inputs.File()
397
  text = gr.outputs.Textbox(label='Context Based Search')
398
  mfw=gr.outputs.Label(label="Most Relevant Topics")
399
- plot1=gr.outputs. Image(label='Sentiment Analysis')
400
- plot2=gr.outputs.Image(label='Subjectivity Analysis')
401
- plot3=gr.outputs.Image(label='Word Cloud')
402
- plot4=gr.outputs.Image(label='Frequency Distribution')
403
- plot5=gr.outputs.Image(label='Dispersion Plot')
404
 
405
  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')
406
  io.launch(debug=True,share=False)
 
392
  return searChRes,fdist_Party,img1,img2,img3,img4,img5
393
 
394
 
395
+ Search_txt=gr.Textbox()
396
+ filePdf = gr.File()
397
  text = gr.outputs.Textbox(label='Context Based Search')
398
  mfw=gr.outputs.Label(label="Most Relevant Topics")
399
+ plot1=gr.Image(label='Sentiment Analysis')
400
+ plot2=gr.Image(label='Subjectivity Analysis')
401
+ plot3=gr.Image(label='Word Cloud')
402
+ plot4=gr.Image(label='Frequency Distribution')
403
+ plot5=gr.Image(label='Dispersion Plot')
404
 
405
  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')
406
  io.launch(debug=True,share=False)