Marthee commited on
Commit
17982ca
·
verified ·
1 Parent(s): 196caba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,10 +4,11 @@ from io import BytesIO
4
 
5
  app = Flask(__name__)
6
 
7
- # Main route to render HTML template
8
  @app.route("/", methods=["GET", "POST"])
9
  def getInfotoMeasure():
10
- return render_template("gui.html")
 
 
11
 
12
  # Route to serve PDF with a specified page
13
  @app.route('/view-pdf', methods=['GET'])
 
4
 
5
  app = Flask(__name__)
6
 
 
7
  @app.route("/", methods=["GET", "POST"])
8
  def getInfotoMeasure():
9
+ # Set the page number internally in Flask (for example, page 2)
10
+ page = 2
11
+ return render_template("gui.html", page=page)
12
 
13
  # Route to serve PDF with a specified page
14
  @app.route('/view-pdf', methods=['GET'])