From b0376711654c7a8dc32adfd0128837764fb6b1b9 Mon Sep 17 00:00:00 2001 From: Kartik Shandilya Date: Thu, 10 Oct 2019 23:04:13 +0530 Subject: [PATCH] Updated app.py --- pdfAnalyzer/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdfAnalyzer/app.py b/pdfAnalyzer/app.py index 9865cfd..fab5a55 100644 --- a/pdfAnalyzer/app.py +++ b/pdfAnalyzer/app.py @@ -1,4 +1,4 @@ -# third-party modules +# third-party modules to be imported try: from flask import Flask, render_template, url_for, redirect, request @@ -6,12 +6,12 @@ from flask import send_from_directory except ImportError as ie: - print(f"Please install the required packages in the requirements.txt file: {ie}") + print(f"Please install the required packages in the requirements.txt file first: {ie}") # built-in modules import os -# our modules +# custom modules from helper import allowed_files from text_conversion import txt_converter from file_downloader import downloader @@ -26,7 +26,7 @@ app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER app.secret_key = 'secret key' -# redirect to local-host +# redirecting to local-host @app.route('/', methods = ['POST', 'GET']) def home(): ''' @@ -116,4 +116,4 @@ def analyze_pdf_page(filename): return render_template('./home/analyzer.html', title = "PDF Analysis", output_data = output_data) if __name__ == '__main__': - app.run(debug = True) \ No newline at end of file + app.run(debug = True)