-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
30 lines (21 loc) · 663 Bytes
/
app.py
File metadata and controls
30 lines (21 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#################################################
# Flask Application
#################################################
# Dependencies and Setup
from flask import Flask, render_template
#################################################
# Flask Setup
#################################################
app = Flask(__name__)
# Route to render index.html template
@app.route("/")
def index():
# Return the homepage
return render_template("index.html")
# Route that will trigger the scrape function
@app.route("/plots")
def plots():
# Redirect back to plots
return render_template("plots.html")
if __name__ == "__main__":
app.run(debug=True)