Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ path_input = "./Aap_Manifesto_2019.pdf"
|
|
| 183 |
urllib.request.urlretrieve(url, filename=path_input)
|
| 184 |
|
| 185 |
url="https://drive.google.com/uc?id=1HVZvTtYntl0YKLnE0cwu0CvAIRhXOv60&export=download"
|
| 186 |
-
path_input = "
|
| 187 |
urllib.request.urlretrieve(url, filename=path_input)
|
| 188 |
|
| 189 |
def analysis(Manifesto,Search):
|
|
@@ -240,7 +240,7 @@ plot2=gr.outputs.Image(label='Word Cloud')
|
|
| 240 |
plot3=gr.outputs.Image(label='Subjectivity')
|
| 241 |
plot4=gr.outputs.Image(label='Frequency Distribution')
|
| 242 |
|
| 243 |
-
io=gr.Interface(fn=analysis, inputs=[filePdf,Search_txt], outputs=[text,mfw,plot4,plot1,plot2,plot3], title='Manifesto Analysis',examples=[['./Bjp_Manifesto_2019.pdf','india'],['./Aap_Manifesto_2019.pdf',],['
|
| 244 |
io.launch(debug=False,share=True)
|
| 245 |
|
| 246 |
|
|
|
|
| 183 |
urllib.request.urlretrieve(url, filename=path_input)
|
| 184 |
|
| 185 |
url="https://drive.google.com/uc?id=1HVZvTtYntl0YKLnE0cwu0CvAIRhXOv60&export=download"
|
| 186 |
+
path_input = "./Congress_Manifesto_2019.pdf"
|
| 187 |
urllib.request.urlretrieve(url, filename=path_input)
|
| 188 |
|
| 189 |
def analysis(Manifesto,Search):
|
|
|
|
| 240 |
plot3=gr.outputs.Image(label='Subjectivity')
|
| 241 |
plot4=gr.outputs.Image(label='Frequency Distribution')
|
| 242 |
|
| 243 |
+
io=gr.Interface(fn=analysis, inputs=[filePdf,Search_txt], outputs=[text,mfw,plot4,plot1,plot2,plot3], title='Manifesto Analysis',examples=[['./Bjp_Manifesto_2019.pdf','india'],['./Aap_Manifesto_2019.pdf',],['./Congress_Manifesto_2019.pdf',]])
|
| 244 |
io.launch(debug=False,share=True)
|
| 245 |
|
| 246 |
|