Sa-m commited on
Commit
28346aa
1 Parent(s): cd5b6e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -394,13 +394,13 @@ def analysis(Manifesto,Search):
394
 
395
  Search_txt= "text"
396
  filePdf = "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)
 
394
 
395
  Search_txt= "text"
396
  filePdf = "file"
397
+ text = gr.Textbox(label='Context Based Search')
398
+ mfw=gr.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)