Skip to content

Commit

Permalink
Amen
Browse files Browse the repository at this point in the history
  • Loading branch information
gachouchani1999 committed Sep 19, 2021
1 parent 690a2d7 commit 9dee71a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Binary file added Report.pptx
Binary file not shown.
12 changes: 7 additions & 5 deletions flaskr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
app.run(threaded=True)
2 changes: 1 addition & 1 deletion flaskr/templates/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
<div class="text-center">
<h3 id="pptx-status"> Analyzing ... </h3>
<form action="https://ezppt.herokuapp.com/download">
<form action="/download">
<button id="downloadBtn" class="btn btn-success" style="display:none;">Download PPTX</button>
</form>

Expand Down
2 changes: 1 addition & 1 deletion flaskr/templates/upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -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!
</p>
<form action="http://ezppt.herokuapp.com/uploader" method="post" enctype = "multipart/form-data">
<div class="center">
Expand Down
Binary file added report.docx
Binary file not shown.

0 comments on commit 9dee71a

Please sign in to comment.