diff --git a/Report.pptx b/Report.pptx new file mode 100644 index 0000000..c1cc776 Binary files /dev/null and b/Report.pptx differ diff --git a/flaskr/__init__.py b/flaskr/__init__.py index 8f263a7..4f04fca 100644 --- a/flaskr/__init__.py +++ b/flaskr/__init__.py @@ -26,15 +26,17 @@ def index(): -@app.route('/download') +@app.route('/download', methods=['GET','POST'] ) def download(): - filename_new = f.filename[:f.filename.find('.')] - path = '../'+filename_new + '.pptx' - return send_file(path, as_attachment=True) + if request.method == 'POST': + + filename_new = f.filename[:f.filename.find('.')] + path = '../'+filename_new + '.pptx' + return send_file(path, as_attachment=True) Bootstrap (app) if __name__ == '__main__': # Threaded option to enable multiple instances for multiple user access support - app.run(threaded=True, port=5000) \ No newline at end of file + app.run(threaded=True) \ No newline at end of file diff --git a/flaskr/templates/download.html b/flaskr/templates/download.html index 648e45e..02d569f 100644 --- a/flaskr/templates/download.html +++ b/flaskr/templates/download.html @@ -39,7 +39,7 @@

Analyzing ...

-
+
diff --git a/flaskr/templates/upload.html b/flaskr/templates/upload.html index 1346953..3bc303f 100644 --- a/flaskr/templates/upload.html +++ b/flaskr/templates/upload.html @@ -23,7 +23,7 @@ Tired of making powerpoints and losing hours that could be put into deep work? You've come to the right place. EZ PowerPoint uses natural language processing algorithms to pick out the most important points and summarizes the report or paper. Simply upload your files, click generate, and wait for your work - to be done for you! + to be done for you!

diff --git a/report.docx b/report.docx new file mode 100644 index 0000000..1ccff77 Binary files /dev/null and b/report.docx differ