-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.py
33 lines (25 loc) · 950 Bytes
/
application.py
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
31
32
33
from flask import Flask, render_template, jsonify
# import boto3
# import dataset
# Create an instance of Flask class (represents our application)
# Pass in name of application's module (__name__ evaluates to current module name)
app = Flask(__name__, template_folder='./templates',static_folder='./templates/static')
application = app # AWS EB requires it to be called "application"
# Provide a landing page with some documentation on how to use API
@app.route("/")
def home():
return render_template('index.html')
@app.route("/overview")
def overview():
return render_template('overview.html')
@app.route("/sentiment")
def sentiment():
return render_template('sentiment.html')
@app.route("/stat_analysis")
def stat_analysis():
return render_template('stat_analysis.html')
@app.route("/classification")
def classification():
return render_template('classification.html')
if __name__ == "__main__":
application.run()