Spaces:
Running
Running
Update app.py
Browse files
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.
|
396 |
-
filePdf = gr.
|
397 |
text = gr.outputs.Textbox(label='Context Based Search')
|
398 |
mfw=gr.outputs.Label(label="Most Relevant Topics")
|
399 |
-
plot1=gr.
|
400 |
-
plot2=gr.
|
401 |
-
plot3=gr.
|
402 |
-
plot4=gr.
|
403 |
-
plot5=gr.
|
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)
|