Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -394,13 +394,13 @@ def analysis(Manifesto,Search):
|
|
394 |
|
395 |
Search_txt= "text"
|
396 |
filePdf = "file"
|
397 |
-
text = gr.
|
398 |
-
mfw=gr.
|
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)
|
|
|
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)
|